diff --git a/app/assets/javascripts/components/Columns/ColumnItem.js b/app/assets/javascripts/components/Columns/ColumnItem.js index b10676ec6..b4c3ad2fe 100644 --- a/app/assets/javascripts/components/Columns/ColumnItem.js +++ b/app/assets/javascripts/components/Columns/ColumnItem.js @@ -33,7 +33,7 @@ export const Column = ({ title, children, renderAction, onClose, canClose, provi const DroppableColumn = ({ title, children, renderAction, onClose, visible, canClose, columnId }) => ( visible && ( - + {provided => ( ( ) const droppableContainer = columnId => ( - + {provided => (
{provided.placeholder} diff --git a/app/assets/javascripts/components/stories/Stories.js b/app/assets/javascripts/components/stories/Stories.js index 866b4b8dc..69ac4915d 100644 --- a/app/assets/javascripts/components/stories/Stories.js +++ b/app/assets/javascripts/components/stories/Stories.js @@ -8,6 +8,7 @@ const Stories = ({ stories, from, sprintIndex, columnId, isDropDisabled }) => ( {provided => (
{ // check new order cy.getDraggablesFromColumn(backlog).should("contain", dragStory); cy.getDraggablesFromColumn(done).should("not.contain", dragStory); - }) + }); + + it("Drags to closed and reopened columns", () => { + const dragStory = + "A user should be able drag this story from chilly bean and drop to backlog"; + + // close first column + cy.contains("close").click(); + + cy.wait(300); + + // close second column + cy.contains("close").click(); + + cy.wait(300); + + // reopen chillybin column + cy.get('i[class$="fa-snowflake"]').click(); + + cy.wait(300); + + //reopen backlog/current sprint column + cy.get('i[class$="fa-th-list"]').click(); + + // move story + cy.getDraggablesFromColumn(chillyBin) + .eq(1) + .as("drag-element") + .moveStory("@drag-element", Keys.arrowRight, Keys.space); + + cy.getDraggablesFromColumn(backlog).should("contain", dragStory); + + }); }); });