chore(e2e): update register case
Some checks are pending
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase backend test / sqlite-test (20, false) (push) Waiting to run
NocoBase backend test / sqlite-test (20, true) (push) Waiting to run
NocoBase backend test / postgres-test (public, 20, nocobase, false) (push) Waiting to run
NocoBase backend test / postgres-test (public, 20, nocobase, true) (push) Waiting to run
NocoBase backend test / postgres-test (public, 20, public, false) (push) Waiting to run
NocoBase backend test / postgres-test (public, 20, public, true) (push) Waiting to run
NocoBase backend test / postgres-test (user_schema, 20, nocobase, false) (push) Waiting to run
NocoBase backend test / postgres-test (user_schema, 20, nocobase, true) (push) Waiting to run
NocoBase backend test / postgres-test (user_schema, 20, public, false) (push) Waiting to run
NocoBase backend test / postgres-test (user_schema, 20, public, true) (push) Waiting to run
NocoBase backend test / mysql-test (20, false) (push) Waiting to run
NocoBase backend test / mysql-test (20, true) (push) Waiting to run
NocoBase backend test / mariadb-test (20, false) (push) Waiting to run
NocoBase backend test / mariadb-test (20, true) (push) Waiting to run
NocoBase frontEnd test / frontend-test (20) (push) Waiting to run
Test on Windows / build (push) Waiting to run

This commit is contained in:
Zeke Zhang 2024-11-28 09:25:24 +08:00
parent ea49f1afbb
commit 501e4276cb

View File

@ -24,12 +24,9 @@ test.describe('auth', () => {
await page.goto('/');
await page.getByRole('link', { name: 'Create an account' }).click();
await page.getByPlaceholder('Username').click();
await page.getByPlaceholder('Username').fill(username);
await page.getByPlaceholder('Password', { exact: true }).click();
await page.getByPlaceholder('Password', { exact: true }).fill('zidonghuaceshi123');
await page.getByPlaceholder('Confirm password').click();
await page.getByPlaceholder('Confirm password').fill('zidonghuaceshi123');
await page.getByLabel('block-item-Input-Username').getByRole('textbox').fill(username);
await page.getByLabel('block-item-Password-Password').getByRole('textbox').fill('zidonghuaceshi123');
await page.getByLabel('block-item-Password-Confirm').getByRole('textbox').fill('zidonghuaceshi123');
await page.getByRole('button', { name: 'Sign up' }).click();
await expect(page.getByText('Sign up successfully, and automatically jump to the sign in page')).toBeVisible();