Skip to content

Commit

Permalink
test: Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
baitun committed Jul 5, 2023
1 parent 6d240e9 commit 2920b8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions integration-tests/full-cycle.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { test, expect } from '@playwright/test';
test('Full jerney for М-21-1', async ({ page }) => {
await page.goto('https://bgu.irkvuz.ru/');
expect(page).toHaveURL('https://bgu.irkvuz.ru/faculties');
await page.getByTestId('input-search').fill('Институт управления');
await page.getByRole('link', { name: 'Институт управления и финансов' }).click();
expect(page).toHaveURL('https://bgu.irkvuz.ru/205/');
await page.getByTestId('input-search').fill('Колледж');
await page.getByRole('link', { name: 'Колледж Байкальского государственного университета' }).click();
expect(page).toHaveURL('https://bgu.irkvuz.ru/211/');

await page.getByTestId('input-search').fill('М-');
await page.getByRole('link', { name: 'М-21-1' }).click();
expect(page).toHaveURL('https://bgu.irkvuz.ru/205/31019/');
await page.getByTestId('input-search').fill('БД');
await page.getByRole('link', { name: 'БД(9)-22-1' }).click();
expect(page).toHaveURL('https://bgu.irkvuz.ru/211/31899/');

await page.getByTestId('week-parity-switcher').click();
expect(page.locator('.ant-message-notice-content')).toBeVisible();
Expand Down

0 comments on commit 2920b8f

Please sign in to comment.