Skip to content

Commit

Permalink
PMM-7: Fix docker upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
peterSirotnak committed Sep 30, 2024
1 parent f627fc2 commit 198d456
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/upgradePMM_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,12 @@ Scenario(
'PMM-T289 Verify Whats New link is presented on Update Widget @ovf-upgrade @ami-upgrade @pre-upgrade @pmm-upgrade',
async ({ I, homePage }) => {
const locators = homePage.getLocators(versionMinor);
const dockerUpgrade = process.env.PERFORM_DOCKER_WAY_UPGRADE;

console.log(`Docker way upgrade equals: ${dockerUpgrade}`);
const dockerUpgrade = process.env.PERFORM_DOCKER_WAY_UPGRADE || '';

I.amOnPage(homePage.url);
// Whats New Link is added for the latest version hours before the release,
// hence we need to skip checking on that, rest it should be available and checked.
if (majorVersionDiff >= 1 && patchVersionDiff >= 1) {
if (majorVersionDiff >= 1 && patchVersionDiff >= 1 && dockerUpgrade === 'no') {
I.waitForElement(locators.whatsNewLink, 30);
I.seeElement(locators.whatsNewLink);
const link = await I.grabAttributeFrom(locators.whatsNewLink, 'href');
Expand Down

0 comments on commit 198d456

Please sign in to comment.