Skip to content

Commit

Permalink
fix(tests): not all update e2e tests were run (podman-desktop#9362)
Browse files Browse the repository at this point in the history
* fix(tests): add missing tag and make the update tests less complex

Signed-off-by: Ondrej Dockal <[email protected]>
  • Loading branch information
odockal authored Oct 16, 2024
1 parent 9587027 commit e84f829
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/e2e-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ jobs:
echo ("PODMAN_DESKTOP_BINARY=" + $path) >> $env:GITHUB_ENV
- name: Run E2E Update test
env:
UPDATE_PODMAN_DESKTOP: true
run: |
echo "${{ env.PODMAN_DESKTOP_BINARY }}"
pnpm test:e2e:update:run
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,6 @@ jobs:
echo ("PODMAN_DESKTOP_BINARY=" + $path) >> $env:GITHUB_ENV
- name: Run E2E Update test
env:
UPDATE_PODMAN_DESKTOP: true
run: |
echo "${{ env.PODMAN_DESKTOP_BINARY }}"
pnpm test:e2e:update:run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ let sBar: StatusBar;
let updateAvailableDialog: Locator;
let updateDialog: Locator;
let updateDownloadedDialog: Locator;
const performUpdate = process.env.UPDATE_PODMAN_DESKTOP ? process.env.UPDATE_PODMAN_DESKTOP : false;

test.skip(isLinux, 'Update is not supported on Linux');

Expand All @@ -45,7 +44,7 @@ test.afterAll(async ({ runner }) => {
});

test.describe
.serial('Podman Desktop Update Update installation offering @update-install', () => {
.serial('Podman Desktop Update installation @update-install', () => {
test('Update is offered automatically on startup', async ({ welcomePage }) => {
await playExpect(updateAvailableDialog).toBeVisible();
const updateNowButton = updateAvailableDialog.getByRole('button', { name: 'Update Now' });
Expand All @@ -70,10 +69,7 @@ test.describe
await sBar.updateButtonTitle.click();
await handleConfirmationDialog(page, 'Update Available now', false, '', 'Cancel');
});
});
test.describe
.serial('Podman Desktop Update installation can be performed', () => {
test.skip(!performUpdate, 'Update test does not run as UPDATE_PODMAN_DESKTOP env. var. is not set');

test('Update can be initiated', async () => {
await sBar.updateButtonTitle.click();
await playExpect(updateAvailableDialog).toBeVisible();
Expand Down

0 comments on commit e84f829

Please sign in to comment.