Skip to content

Commit

Permalink
Try some delays to stabilize test
Browse files Browse the repository at this point in the history
  • Loading branch information
HDinger committed Dec 2, 2024
1 parent eeb955e commit b83540a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/features/work_packages/details/relations/hierarchy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,27 +158,39 @@ def visit_relations
wp_page.expect_and_dismiss_toaster(message: "Successful update.")
relations.expect_parent(parent)

wait_for_network_idle

##
# Add child
relations.add_existing_child(child)
expect_and_dismiss_flash(message: "Successful update.")
relations.expect_child(child)

wait_for_network_idle

# Expect counter to add up child to the existing relations
tabs.expect_counter(relations_tab, 3)

wait_for_network_idle

# Remove parent
relations.remove_parent
wp_page.expect_and_dismiss_toaster(message: "Successful update.")
relations.expect_no_parent

wait_for_network_idle

# Remove child
relations.remove_child(child)

wait_for_network_idle

# Should also check for successful update but no message is shown, yet.
expect_and_dismiss_flash(message: "Successful update.")
relations.expect_not_child(child)

wait_for_network_idle

# Expect counter to count the two relations
tabs.expect_counter(relations_tab, 2)
end
Expand Down

0 comments on commit b83540a

Please sign in to comment.