Skip to content

Commit

Permalink
Fix Board spec timing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dombesz committed Jan 17, 2024
1 parent 50bac5b commit aa5af8e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@

# Move task to closed
board_page.move_card(0, from: 'Open', to: 'Closed')
board_page.wait_for_lists_reload

board_page.expect_card('Open', 'Open task item', present: false)
board_page.expect_card('Closed', 'Open task item', present: true)

Expand All @@ -143,7 +145,9 @@
sleep 2

# Move bug to open
board_page.move_card(0, from: 'Closed', to: 'Open')
board_page.move_card(1, from: 'Closed', to: 'Open')
board_page.wait_for_lists_reload

board_page.expect_card('Closed', 'Closed bug item', present: false)
board_page.expect_card('Open', 'Closed bug item', present: true)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@

# Move item to Child 2 list
board_page.move_card(0, from: 'Child 1', to: 'Child 2')
board_page.wait_for_lists_reload

board_page.expect_card('Child 1', 'Task 1', present: false)
board_page.expect_card('Child 2', 'Task 1', present: true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@

# Move item to Child 2 list
board_page.move_card(0, from: 'Parent WP', to: 'Other WP')
board_page.wait_for_lists_reload

board_page.expect_card('Parent WP', 'Second child', present: false)
board_page.expect_card('Other WP', 'Second child', present: true)
Expand Down

0 comments on commit aa5af8e

Please sign in to comment.