feat: fix api spec errors

This commit is contained in:
2025-02-04 08:00:00 +08:00
parent 26a06fdbf0
commit f00c1d1aef
7 changed files with 182 additions and 48 deletions

View File

@@ -1,4 +1,4 @@
import { test, expect } from '@playwright/test';
import { expect, test } from '@playwright/test';
test('has title', async ({ page }) => {
await page.goto('https://playwright.dev/');
@@ -14,5 +14,7 @@ test('get started link', async ({ page }) => {
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();
await expect(
page.getByRole('heading', { name: 'Installation' })
).toBeVisible();
});