Skip to content

Commit

Permalink
Attempt to fix intermittent CI failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Feb 12, 2024
1 parent c492328 commit cad1aee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/admin_ui/test_loading_button.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def test_publish_button
visit "/admin/#/config/publish"
assert_loading_button("Publish", "Publishing...")
assert_text("Successfully published the configuration")
page.execute_script("window.PNotifyRemoveAll()")
refute_text("Successfully published the configuration")

# Verify that after the first publish, the button gets reset and can be
# used again.
Expand All @@ -72,6 +74,8 @@ def test_publish_button
find("nav a", :text => /Publish Changes/).click
assert_loading_button("Publish", "Publishing...")
assert_text("Successfully published the configuration")
page.execute_script("window.PNotifyRemoveAll()")
refute_text("Successfully published the configuration")
end
end

Expand Down

0 comments on commit cad1aee

Please sign in to comment.