From 501e4276cb6c1d4c847d3ccbf3e8a4c10f766aa3 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Thu, 28 Nov 2024 09:25:24 +0800 Subject: [PATCH] chore(e2e): update register case --- .../plugin-auth/src/client/__e2e__/auth.test.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/__e2e__/auth.test.ts b/packages/plugins/@nocobase/plugin-auth/src/client/__e2e__/auth.test.ts index 6c756c272..553eb0e2d 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/__e2e__/auth.test.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/client/__e2e__/auth.test.ts @@ -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();