Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d56a903c8 | |||
| ef7183a2d6 | |||
| 6d48470691 |
@@ -16,9 +16,8 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2e:
|
e2e:
|
||||||
uses: privilegedescalation/.github/.github/workflows/plugin-e2e.yaml@main
|
uses: privilegedescalation/.github/.github/workflows/plugin-e2e.yaml@hugh/add-pnpm-support-plugin-e2e
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
headlamp-version: v0.40.1
|
headlamp-version: v0.40.1
|
||||||
e2e-namespace: headlamp-dev
|
e2e-namespace: headlamp-dev
|
||||||
plugin-name: tns-csi
|
|
||||||
|
|||||||
@@ -5,3 +5,9 @@ dist/
|
|||||||
.env
|
.env
|
||||||
.env.local
|
.env.local
|
||||||
.eslintcache
|
.eslintcache
|
||||||
|
|
||||||
|
# E2E
|
||||||
|
e2e/.auth/
|
||||||
|
.env.e2e
|
||||||
|
playwright-report/
|
||||||
|
test-results/
|
||||||
|
|||||||
+2
-3
@@ -24,14 +24,14 @@ test.describe('TNS CSI plugin smoke tests', () => {
|
|||||||
|
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await expect(page).toHaveURL(/tns-csi/);
|
await expect(page).toHaveURL(/tns-csi/);
|
||||||
await expect(page.getByRole('heading', { name: /TNS.CSI/i })).toBeVisible();
|
await expect(page.getByRole('heading', { name: /tns.csi.*overview/i })).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('TNS CSI page renders content', async ({ page }) => {
|
test('TNS CSI page renders content', async ({ page }) => {
|
||||||
await page.goto('/c/main/tns-csi');
|
await page.goto('/c/main/tns-csi');
|
||||||
await waitForSidebar(page);
|
await waitForSidebar(page);
|
||||||
|
|
||||||
await expect(page.getByRole('heading', { name: /TNS.CSI/i })).toBeVisible({
|
await expect(page.getByRole('heading', { name: /tns.csi.*overview/i })).toBeVisible({
|
||||||
timeout: 15_000,
|
timeout: 15_000,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -43,7 +43,6 @@ test.describe('TNS CSI plugin smoke tests', () => {
|
|||||||
test('plugin settings page shows TNS CSI plugin entry', async ({ page }) => {
|
test('plugin settings page shows TNS CSI plugin entry', async ({ page }) => {
|
||||||
await page.goto('/settings/plugins');
|
await page.goto('/settings/plugins');
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await page.waitForSelector('[class*="PluginList"], [class*="plugins"], table, list', { timeout: 10_000 }).catch(() => {});
|
|
||||||
|
|
||||||
const pluginEntry = page.locator('text=/tns.csi/i').first();
|
const pluginEntry = page.locator('text=/tns.csi/i').first();
|
||||||
await expect(pluginEntry).toBeVisible({ timeout: 30_000 });
|
await expect(pluginEntry).toBeVisible({ timeout: 30_000 });
|
||||||
|
|||||||
+4
-4
@@ -24,7 +24,8 @@
|
|||||||
"format:check": "prettier --check src/",
|
"format:check": "prettier --check src/",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:watch": "vitest",
|
"test:watch": "vitest",
|
||||||
"e2e": "playwright test"
|
"e2e": "playwright test",
|
||||||
|
"e2e:headed": "playwright test --headed"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^18.0.0",
|
"react": "^18.0.0",
|
||||||
@@ -48,12 +49,11 @@
|
|||||||
"react-router-dom": "^5.3.0",
|
"react-router-dom": "^5.3.0",
|
||||||
"typescript": "~5.6.2",
|
"typescript": "~5.6.2",
|
||||||
"vitest": "^3.2.4",
|
"vitest": "^3.2.4",
|
||||||
"@playwright/test": "^1.59.1"
|
"@playwright/test": "^1.58.2"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"tar": "^7.5.11",
|
"tar": "^7.5.11",
|
||||||
"undici": "^7.24.3",
|
"undici": "^7.24.3",
|
||||||
"vite": ">=6.4.2",
|
"vite": ">=6.4.2"
|
||||||
"elliptic": ">=6.6.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+530
-530
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user