Skip to content

Commit

Permalink
Merge pull request #1 from dzencot/fix-landing
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
redaktorscha authored May 3, 2023
2 parents 288ef20 + 03d738f commit 1dd24a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test('get started link', async ({ page }) => {
await page.goto('http://localhost:5001');

// Click the get started link.
await page.getByRole('link', { name: 'Начать кодить' }).first().click();
await page.getByRole('button', { name: 'Начать кодить' }).first().click();

// Expects the URL to contain intro.
await expect(page).toHaveURL(/.*login/);
Expand Down
2 changes: 1 addition & 1 deletion tests/workflow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test';

test('work', async ({ page }) => {
await page.goto('http://localhost:5001');
await page.getByRole('link', { name: 'Зарегистрироваться' }).click();
await page.getByRole('button', { name: 'Регистрация' }).click();
await page.getByLabel('Электронная почта').fill('[email protected]');
await page.getByLabel('Логин').fill('test');
await page.getByLabel('Пароль', { exact: true }).fill('password');
Expand Down

0 comments on commit 1dd24a3

Please sign in to comment.