Skip to content

Commit

Permalink
test(playwright): minor update to signin.spec.ts (#54781)
Browse files Browse the repository at this point in the history
  • Loading branch information
huyenltnguyen committed May 14, 2024
1 parent 3f92fc6 commit f826596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/signin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { test, expect } from '@playwright/test';
test.describe('signing in', () => {
test('welcomes the user', async ({ page }) => {
const welcomeText = 'Welcome back, Full Stack User.';
await page.goto('/');
await page.goto('/learn');
await expect(page.getByText(welcomeText)).not.toBeVisible();

await page.getByRole('link', { name: 'Sign in' }).click();
await page.getByRole('link', { name: 'Sign in' }).first().click();

await expect(page.getByText(welcomeText)).toBeVisible();
});
Expand Down

0 comments on commit f826596

Please sign in to comment.