HomieCare/frontend/tests/test-snapshot.spec.ts
2024-05-14 04:49:44 +07:00

11 lines
341 B
TypeScript

import { test, expect } from '@playwright/test';
test('test', async ({ page }) => {
await page.goto('http://localhost:5173/');
await page.getByRole('link', { name: 'Snapshot' }).click();
await page.getByRole('button', { name: 'Today' }).click();
const image = await page.waitForSelector('img');
expect(image).not.toBeNull();
});