mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
test: add delay before clicking switch mfa factors link (#4840)
This commit is contained in:
parent
f694256461
commit
f2a3f7e01f
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { cls } from '#src/utils.js';
|
import { cls, waitFor } from '#src/utils.js';
|
||||||
|
|
||||||
import ExpectExperience from './expect-experience.js';
|
import ExpectExperience from './expect-experience.js';
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@ export default class ExpectMfaExperience extends ExpectExperience {
|
||||||
}
|
}
|
||||||
|
|
||||||
async toClickSwitchFactorsLink({ isBinding }: { isBinding: boolean }) {
|
async toClickSwitchFactorsLink({ isBinding }: { isBinding: boolean }) {
|
||||||
|
// Wait for the page to be fully rendered otherwise sometimes the link is rendered but not clickable.
|
||||||
|
await waitFor(500);
|
||||||
await this.toClick(
|
await this.toClick(
|
||||||
'a',
|
'a',
|
||||||
isBinding ? 'Switch to another method' : 'Try another method to verify'
|
isBinding ? 'Switch to another method' : 'Try another method to verify'
|
||||||
|
|
Loading…
Add table
Reference in a new issue