Skip to content

Commit e57c34a

Browse files
committed
test: update selectors to getByRole and set wait timeout to 30s for Pulsifi Talent App smoke test
1 parent de01e63 commit e57c34a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/e2e/ui-tests/pulsifi/talent-app.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ test.describe('smoke test for talent app', () => {
99
});
1010

1111
test('should load the app successfully', async ({ page }) => {
12-
await page.waitForTimeout(1 * 60 * 1000); // Wait for 1 minute to ensure the app is fully loaded
13-
await page.getByPlaceholder('yours@example.com').fill('test1@gmail.com');
14-
await page.getByPlaceholder('your password').fill('Qa12345');
15-
await page.getByLabel('Log In').click();
12+
await page.waitForTimeout(30 * 1000);
13+
await page.getByRole('textbox', { name: 'Email' }).fill('test2@gmail.com');
14+
await page.getByRole('textbox', { name: 'Password' }).fill('Qa12345');
15+
await page.getByRole('button', { name: 'Log In' }).click();
1616

1717
});
1818
});

0 commit comments

Comments
 (0)