Skip to content

Commit

Permalink
created a e2e test for adding a vet
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrusho committed Nov 11, 2024
1 parent 763d732 commit c77e861
Show file tree
Hide file tree
Showing 3 changed files with 537 additions and 0 deletions.
18 changes: 18 additions & 0 deletions petclinic-frontend/e2e/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
});

test('get started link', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Click the get started link.
await page.getByRole('link', { name: 'Get started' }).click();

// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
});
Loading

0 comments on commit c77e861

Please sign in to comment.