Skip to content

Commit

Permalink
Attempt to fix flaky CI test.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Mar 4, 2024
1 parent 339c7c4 commit 8617477
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/admin_ui/test_roles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,22 @@ def test_share_roles_between_users_and_apis_forms
assert_text("Add API")

find("legend button", :text => /Global Request Settings/).click
refute_text("test-new-user-role")
find(".selectize-input").click
assert_text("test-new-user-role")

find("legend button", :text => /Sub-URL Request Settings/).click
find("button", :text => /Add URL Settings/).click
refute_text("test-new-user-role")
find(".modal-content .selectize-input").click
assert_text("test-new-user-role")
begin
assert_text("test-new-user-role")
rescue
# For some reason this specific test seems to fail in CI environment (but
# not locally), so add in an extra retry.
sleep 3
retry
end
end

def test_removes_user_roles
Expand Down

0 comments on commit 8617477

Please sign in to comment.