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

Fix flux e2e test #5626

Merged
merged 2 commits into from
Nov 11, 2022
Merged
Changes from 1 commit
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
6 changes: 4 additions & 2 deletions integration/tests/flux/04-default-deployment.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const { KubeappsLogin } = require("../utils/kubeapps-login");
const utils = require("../utils/util-functions");

test("Deploys podinfo package with default values in main cluster", async ({ page }) => {
const podInfoTargetVersion = "6.2.3"

// Log in
const k = new KubeappsLogin(page);
await k.doLogin("kubeapps-operator@example.com", "password", process.env.ADMIN_TOKEN);
Expand All @@ -25,8 +27,8 @@ test("Deploys podinfo package with default values in main cluster", async ({ pag
// Deploy package
await page.waitForSelector('select[name="package-versions"]');
const versionSelector = await page.locator('select[name="package-versions"]');
await versionSelector?.selectOption("6.2.0");
await expect(versionSelector).toHaveValue("6.2.0", { timeout: 5000 });
await versionSelector?.selectOption(podInfoTargetVersion);
await expect(versionSelector).toHaveValue(podInfoTargetVersion, { timeout: 5000 });

const releaseNameLocator = page.locator("#releaseName");
await releaseNameLocator.waitFor();
Expand Down