DEV: Standardize session confirmation prompt (#24212)

Switches to using a dialog to confirm a session (i.e. sudo mode for
account changes where we want to be extra sure the current user is who
they say they are) to match what we do with passkeys.
This commit is contained in:
Penar Musaraj
2023-11-07 08:26:10 -08:00
committed by GitHub
parent dcaa719363
commit a1c1f7ce75
14 changed files with 249 additions and 358 deletions

View File

@ -9,10 +9,10 @@ module PageObjects
end
def visit_second_factor(password)
click_link(class: "btn-second-factor")
click_button "Manage Two-Factor Authentication"
find(".second-factor input#password").fill_in(with: password)
find(".second-factor .btn-primary").click
find(".dialog-body input#password").fill_in(with: password)
find(".dialog-body .btn-primary").click
end
end
end