Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: adjust timeout in e2e tests #516

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion tests/src/sso-extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ let extensionCard: ExtensionCardPage;
const imageName = 'ghcr.io/redhat-developer/podman-desktop-redhat-account-ext:latest';
const extensionLabel = 'redhat.redhat-authentication';
const extensionLabelName = 'redhat-authentication';
const podmanExtensionLabel = 'podman-desktop.podman';
const podmanExtensionLabelName = 'podman';
const authProviderName = 'Red Hat SSO';
const activeExtensionStatus = 'ACTIVE';
const disabledExtensionStatus = 'DISABLED';
Expand Down Expand Up @@ -61,14 +63,22 @@ test.describe.serial('Red Hat Authentication extension verification', () => {
await removeExtension(navigationBar);
});

test('Podman Extension is activated', async ({ navigationBar }) => {
const extensions = await navigationBar.openExtensions();
const podmanExtensionCard = await extensions.getInstalledExtension(podmanExtensionLabelName, podmanExtensionLabel);
await podmanExtensionCard.card.scrollIntoViewIfNeeded();
await playExpect(podmanExtensionCard.status).toHaveText(activeExtensionStatus, { timeout: 20_000 });
});

// we want to install extension from OCI image (usually using latest tag) after new code was added to the codebase
// and extension was published already
test('Extension can be installed using OCI image', async ({ navigationBar }) => {
test.skip(extensionInstalled && !skipInstallation);
test.setTimeout(200000);
const extensions = await navigationBar.openExtensions();
await extensions.installExtensionFromOCIImage(imageName);
await playExpect(extensionCard.card).toBeVisible();
await extensionCard.card.scrollIntoViewIfNeeded();
await playExpect(extensionCard.card).toBeVisible({ timeout: 15_000 });
});

test('Extension (card) is installed, present and active', async ({ navigationBar }) => {
Expand Down