Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8074178

Browse files
committed
fix: added checkbox state check to sign-up page
1 parent00f8a9f commit8074178

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

‎playwright/pages/login-page.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,6 @@ export class LoginPage {
2121
}
2222

2323

24-
/*
25-
26-
test('test', async ({ page }) => {
27-
await page.goto('http://localhost:3000/');
28-
await page.goto('http://localhost:3000/apps');
29-
await page.goto('http://localhost:3000/user/auth/login');
30-
await page.getByPlaceholder('Please enter your email').click();
31-
await page.getByPlaceholder('Please enter your email').fill('admin@admin.com');
32-
await page.getByRole('button', { name: 'Continue' }).click();
33-
await page.getByPlaceholder('Please enter your password').click();
34-
await page.getByPlaceholder('Please enter your password').fill('admin1234');
35-
await page.getByRole('button', { name: 'Sign In' }).click();
36-
await page.getByTitle('admin@admin.com', { exact: true }).click();
37-
await page.getByText('admin@admin.com', { exact: true }).click();
38-
await page.getByText('My Profile').click();
39-
});
40-
41-
*/
42-
43-
4424
asyncloadPage(){
4525
awaitthis.page.goto('/user/auth/login');
4626
}

‎playwright/pages/signup-page.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ export class SignUpPage {
2525
awaitexpect(this.page.getByText('Password',{exact:true}),'"password" text input is displayed').toBeVisible();
2626
awaitexpect(this.page.getByText('Confirm Password'),'"confirm password" text input is displayed').toBeVisible();
2727
awaitexpect(this.page.getByText('I Have Read and Agree to the'),'agree to ToS checkbox is displayed').toBeVisible();
28-
29-
// TODO: uncomment and add testId once it's added in frontend
30-
// await expect(this.page.getByTestId(''), 'agree to ToS checkbox is checked').toBeChecked();
28+
awaitexpect(this.page.getByTestId('agree-terms-checkbox'),'agree to ToS checkbox is checked').toBeChecked();
3129

3230
/** Fill inputs and clicn sign up */
3331
awaitthis.txtEmail.click();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp