Add e2e/argocd.spec.ts
This commit is contained in:
committed by
GitHub
parent
3a8ab3847c
commit
0675cb6e5b
@@ -0,0 +1,18 @@
|
|||||||
|
import { test, expect } from '@playwright/test';
|
||||||
|
|
||||||
|
test.describe('ArgoCD plugin smoke tests', () => {
|
||||||
|
test('sidebar contains ArgoCD entry', async ({ page }) => {
|
||||||
|
await page.goto('/');
|
||||||
|
const sidebar = page.getByRole('navigation', { name: 'Navigation' });
|
||||||
|
await expect(sidebar).toBeVisible({ timeout: 15_000 });
|
||||||
|
await expect(sidebar.getByRole('button', { name: 'ArgoCD' })).toBeVisible();
|
||||||
|
});
|
||||||
|
|
||||||
|
test('applications list page loads', async ({ page }) => {
|
||||||
|
await page.goto('/c/main/argocd');
|
||||||
|
|
||||||
|
await expect(
|
||||||
|
page.getByRole('heading', { name: /argo.*cd/i })
|
||||||
|
).toBeVisible({ timeout: 15_000 });
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user