fix(e2e): use specific regex for pods, metrics, and device-plugins page headings
Fix overly-broad heading selectors that cause Playwright strict mode violations: - /pods route: /pod/i -> /intel gpu.*pods/i - /metrics route: /metric/i -> /intel gpu.*metrics/i - /device-plugins route: /device plugin/i -> /intel gpu.*device plugins/i Same specificity pattern as nodes page fix in PR #36. Fixes GitHub #37.
This commit is contained in:
@@ -43,7 +43,7 @@ test.describe('Intel GPU plugin smoke tests', () => {
|
||||
test('device plugins page renders or shows empty state', async ({ page }) => {
|
||||
await page.goto('/c/main/intel-gpu/device-plugins');
|
||||
|
||||
await expect(page.getByRole('heading', { name: /device plugin/i })).toBeVisible({
|
||||
await expect(page.getByRole('heading', { name: /intel gpu.*device plugins/i })).toBeVisible({
|
||||
timeout: 15_000,
|
||||
});
|
||||
|
||||
@@ -69,10 +69,10 @@ test.describe('Intel GPU plugin smoke tests', () => {
|
||||
await expect(page.getByRole('heading', { name: /intel gpu.*nodes/i })).toBeVisible({ timeout: 15_000 });
|
||||
|
||||
await page.goto('/c/main/intel-gpu/pods');
|
||||
await expect(page.getByRole('heading', { name: /pod/i })).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.getByRole('heading', { name: /intel gpu.*pods/i })).toBeVisible({ timeout: 15_000 });
|
||||
|
||||
await page.goto('/c/main/intel-gpu/metrics');
|
||||
await expect(page.getByRole('heading', { name: /metric/i })).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.getByRole('heading', { name: /intel gpu.*metrics/i })).toBeVisible({ timeout: 15_000 });
|
||||
});
|
||||
|
||||
test('plugin settings page shows intel-gpu plugin entry', async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user