Skip to content

Commit

Permalink
fix correspondance test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelbr committed Feb 15, 2024
1 parent 5920412 commit 8a66298
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions e2e-tests/assistant-view.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ test('should show boats and message on Correspondance', async ({ page }) => {

await page.getByRole('textbox', { name: 'From' }).click();
await page.getByRole('textbox', { name: 'From' }).fill('Moa trafikktermin');
await page.getByText('Moa trafikkterminal').click();
await page.getByRole('option', { name: 'Moa trafikkterminal' }).click();

await page.getByRole('textbox', { name: 'To' }).click();
await page.getByRole('textbox', { name: 'To' }).fill('Ulsteinvik');
Expand All @@ -83,7 +83,9 @@ test('should show boats and message on Correspondance', async ({ page }) => {
return request.url().includes('trip');
});

await page.getByRole('option', { name: 'Ulsteinvik Ulstein' }).click();
await page
.getByRole('option', { name: 'Ulsteinvik Ulstein', exact: true })
.click();

await additionalRequest;

Expand All @@ -98,6 +100,6 @@ test('should show boats and message on Correspondance', async ({ page }) => {

await additionalRequest2;

await page.getByTestId('trip-pattern-1').click();
await page.getByTestId('trip-pattern-0').click();
await expect(page.getByText('Correspondance between 1145')).toBeVisible();
});

0 comments on commit 8a66298

Please sign in to comment.