Skip to content

Commit

Permalink
chore: adjust timeout in e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Dockal <[email protected]>
  • Loading branch information
odockal committed Jan 15, 2025
1 parent 111230f commit 6e71ae0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 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,24 @@ test.describe.serial('Red Hat Authentication extension verification', () => {
await removeExtension(navigationBar);
});

test('Podman Extension is activated', async ({ navigationBar }) => {
const extensions = await navigationBar.openExtensions();
await playExpect.poll( async () => {
await extensions.extensionIsInstalled(podmanExtensionLabel)

Check failure on line 69 in tests/src/sso-extension.spec.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-22.04)

Missing semicolon
}, { timeout: 10_000 }).toBeTruthy();
const podmanExtensionCard = await extensions.getInstalledExtension(podmanExtensionLabelName, podmanExtensionLabel);
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

0 comments on commit 6e71ae0

Please sign in to comment.