mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-18 20:59:39 +02:00
Fix trailing whitespace in API keys system test
This commit is contained in:
parent
fc921c0cd2
commit
b65e4d376e
1 changed files with 4 additions and 4 deletions
|
@ -97,7 +97,7 @@ class Settings::ApiKeysTest < ApplicationSystemTestCase
|
||||||
|
|
||||||
# Should be on the new API key form
|
# Should be on the new API key form
|
||||||
assert_text "Create New API Key"
|
assert_text "Create New API Key"
|
||||||
|
|
||||||
fill_in "API Key Name", with: "New API Key"
|
fill_in "API Key Name", with: "New API Key"
|
||||||
choose "Read Only"
|
choose "Read Only"
|
||||||
click_button "Create API Key"
|
click_button "Create API Key"
|
||||||
|
@ -123,16 +123,16 @@ class Settings::ApiKeysTest < ApplicationSystemTestCase
|
||||||
|
|
||||||
# Click the revoke button to open the modal
|
# Click the revoke button to open the modal
|
||||||
click_button "Revoke Key"
|
click_button "Revoke Key"
|
||||||
|
|
||||||
# Wait for the modal to appear and click Confirm
|
# Wait for the modal to appear and click Confirm
|
||||||
# The dialog might take a moment to appear
|
# The dialog might take a moment to appear
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
|
|
||||||
within "#confirm-dialog" do
|
within "#confirm-dialog" do
|
||||||
assert_text "Are you sure you want to revoke this API key?"
|
assert_text "Are you sure you want to revoke this API key?"
|
||||||
click_button "Confirm"
|
click_button "Confirm"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Wait for the page to update after revoke
|
# Wait for the page to update after revoke
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue