Skip to content

Commit 8074178

Browse files
committed
fix: added checkbox state check to sign-up page
1 parent 00f8a9f commit 8074178

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
async loadPage() {
4525
await this.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
await expect(this.page.getByText('Password', { exact: true }), '"password" text input is displayed').toBeVisible();
2626
await expect(this.page.getByText('Confirm Password'), '"confirm password" text input is displayed').toBeVisible();
2727
await expect(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+
await expect(this.page.getByTestId('agree-terms-checkbox'), 'agree to ToS checkbox is checked').toBeChecked();
3129

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

0 commit comments

Comments
 (0)