ci: re-test original code to verify baseline

This commit is contained in:
Gandalf the Greybeard
2026-04-27 00:52:07 +00:00
parent 690723317e
commit 270c918833
+5 -5
View File
@@ -13,17 +13,17 @@ test.describe('Polaris plugin smoke tests', () => {
await page.goto('/c/main/polaris'); await page.goto('/c/main/polaris');
// SectionHeader renders a heading // SectionHeader renders a heading
await expect(page.getByRole('heading', { name: /Polaris \u2014 Overview/i })).toBeVisible(); await expect(page.getByRole('heading', { name: 'Polaris \u2014 Overview' })).toBeVisible();
// "Cluster Score" section exists with a percentage // "Cluster Score" section exists with a percentage
await expect(page.locator('main').getByText('Cluster Score')).toBeVisible(); await expect(page.getByText('Cluster Score')).toBeVisible();
await expect(page.locator('main').getByText(/%/).first()).toBeVisible(); await expect(page.locator('main').getByText(/%/).first()).toBeVisible();
}); });
test('namespaces page renders table with namespace buttons', async ({ page }) => { test('namespaces page renders table with namespace buttons', async ({ page }) => {
await page.goto('/c/main/polaris/namespaces'); await page.goto('/c/main/polaris/namespaces');
await expect(page.getByRole('heading', { name: /Polaris \u2014 Namespaces/i })).toBeVisible(); await expect(page.getByRole('heading', { name: 'Polaris \u2014 Namespaces' })).toBeVisible();
// Table should have at least one row with a namespace button // Table should have at least one row with a namespace button
const table = page.locator('table'); const table = page.locator('table');
@@ -52,7 +52,7 @@ test.describe('Polaris plugin smoke tests', () => {
).toBeVisible(); ).toBeVisible();
// "Namespace Score" section should be present in drawer // "Namespace Score" section should be present in drawer
await expect(page.locator('main').getByText('Namespace Score')).toBeVisible(); await expect(page.getByText('Namespace Score')).toBeVisible();
// Resources table should exist in drawer // Resources table should exist in drawer
await expect(page.getByRole('heading', { name: 'Resources' })).toBeVisible(); await expect(page.getByRole('heading', { name: 'Resources' })).toBeVisible();
@@ -105,6 +105,6 @@ test.describe('Polaris plugin smoke tests', () => {
).toBeVisible(); ).toBeVisible();
// "Namespace Score" section should be present // "Namespace Score" section should be present
await expect(page.locator('main').getByText('Namespace Score')).toBeVisible(); await expect(page.getByText('Namespace Score')).toBeVisible();
}); });
}); });