Skip to content

Commit 7c7386b

Browse files
authored
chore: adjust timeout in e2e tests (#516)
Signed-off-by: Ondrej Dockal <[email protected]>
1 parent ef7eaab commit 7c7386b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/src/sso-extension.spec.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ let extensionCard: ExtensionCardPage;
2626
const imageName = 'ghcr.io/redhat-developer/podman-desktop-redhat-account-ext:latest';
2727
const extensionLabel = 'redhat.redhat-authentication';
2828
const extensionLabelName = 'redhat-authentication';
29+
const podmanExtensionLabel = 'podman-desktop.podman';
30+
const podmanExtensionLabelName = 'podman';
2931
const authProviderName = 'Red Hat SSO';
3032
const activeExtensionStatus = 'ACTIVE';
3133
const disabledExtensionStatus = 'DISABLED';
@@ -61,14 +63,22 @@ test.describe.serial('Red Hat Authentication extension verification', () => {
6163
await removeExtension(navigationBar);
6264
});
6365

66+
test('Podman Extension is activated', async ({ navigationBar }) => {
67+
const extensions = await navigationBar.openExtensions();
68+
const podmanExtensionCard = await extensions.getInstalledExtension(podmanExtensionLabelName, podmanExtensionLabel);
69+
await podmanExtensionCard.card.scrollIntoViewIfNeeded();
70+
await playExpect(podmanExtensionCard.status).toHaveText(activeExtensionStatus, { timeout: 20_000 });
71+
});
72+
6473
// we want to install extension from OCI image (usually using latest tag) after new code was added to the codebase
6574
// and extension was published already
6675
test('Extension can be installed using OCI image', async ({ navigationBar }) => {
6776
test.skip(extensionInstalled && !skipInstallation);
6877
test.setTimeout(200000);
6978
const extensions = await navigationBar.openExtensions();
7079
await extensions.installExtensionFromOCIImage(imageName);
71-
await playExpect(extensionCard.card).toBeVisible();
80+
await extensionCard.card.scrollIntoViewIfNeeded();
81+
await playExpect(extensionCard.card).toBeVisible({ timeout: 15_000 });
7282
});
7383

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

0 commit comments

Comments
 (0)