feat: add verify process in change email progress (#4306)

Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
Qi
2023-09-14 00:54:02 +08:00
committed by GitHub
parent 0b1ba6bf43
commit 0be142e4e2
19 changed files with 443 additions and 81 deletions

View File

@@ -144,18 +144,14 @@ export async function loginUser(
await page.getByTestId('cloud-signin-button').click({
delay: 200,
});
await page.getByPlaceholder('Enter your email address').type(userEmail, {
delay: 50,
});
await page.getByPlaceholder('Enter your email address').fill(userEmail);
await page.getByTestId('continue-login-button').click({
delay: 200,
});
await page.getByTestId('sign-in-with-password').click({
delay: 200,
});
await page.getByTestId('password-input').type('123456', {
delay: 50,
});
await page.getByTestId('password-input').fill('123456');
if (config?.beforeLogin) {
await config.beforeLogin();
}

View File

@@ -3,7 +3,7 @@ import { expect } from '@playwright/test';
export async function waitForEditorLoad(page: Page) {
await page.waitForSelector('v-line', {
timeout: 10000,
timeout: 20000,
});
}