All checks were successful
Queue Release Build / prepare (push) Successful in 19s
Deploy Web Apps / deploy (push) Successful in 8m12s
Queue Release Build / build-windows (push) Successful in 27m44s
Queue Release Build / build-linux (push) Successful in 48m1s
Queue Release Build / build-android (push) Successful in 22m7s
Queue Release Build / finalize (push) Successful in 2m42s
20 lines
858 B
TypeScript
20 lines
858 B
TypeScript
import { expect, type Page } from '@playwright/test';
|
|
|
|
export const E2E_PLUGIN_SOURCE_URL = 'http://localhost:4200/plugins/e2e-plugin-source.json';
|
|
export const E2E_PLUGIN_TITLE = 'E2E All API Plugin';
|
|
|
|
export async function addPluginSource(page: Page, sourceUrl = E2E_PLUGIN_SOURCE_URL): Promise<void> {
|
|
const sourceInput = page.getByLabel('Plugin source manifest URL');
|
|
|
|
await expect(sourceInput).toBeVisible({ timeout: 15_000 });
|
|
await sourceInput.click();
|
|
await sourceInput.fill(sourceUrl);
|
|
await expect(sourceInput).toHaveValue(sourceUrl, { timeout: 5_000 });
|
|
|
|
const addSourceButton = page.getByRole('button', { name: 'Add Source' });
|
|
|
|
await expect(addSourceButton).toBeEnabled({ timeout: 10_000 });
|
|
await addSourceButton.click();
|
|
await expect(page.getByRole('heading', { name: E2E_PLUGIN_TITLE })).toBeVisible({ timeout: 20_000 });
|
|
}
|