File tree Expand file tree Collapse file tree 2 files changed +1
-23
lines changed Expand file tree Collapse file tree 2 files changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -21,26 +21,6 @@ export class LoginPage {
21
21
}
22
22
23
23
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
-
44
24
async loadPage ( ) {
45
25
await this . page . goto ( '/user/auth/login' ) ;
46
26
}
Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ export class SignUpPage {
25
25
await expect ( this . page . getByText ( 'Password' , { exact : true } ) , '"password" text input is displayed' ) . toBeVisible ( ) ;
26
26
await expect ( this . page . getByText ( 'Confirm Password' ) , '"confirm password" text input is displayed' ) . toBeVisible ( ) ;
27
27
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 ( ) ;
31
29
32
30
/** Fill inputs and clicn sign up */
33
31
await this . txtEmail . click ( ) ;
You can’t perform that action at this time.
0 commit comments