From d01171a13eeff0b96236a60547362d4338d1deba Mon Sep 17 00:00:00 2001 From: Diana Barsan <35681649+dianabarsan@users.noreply.github.com> Date: Wed, 22 May 2024 05:27:26 +0300 Subject: [PATCH] fix(#9134): fix upgrade e2e for github tags (#9138) #9134 --- tests/e2e/upgrade/upgrade.wdio-spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/upgrade/upgrade.wdio-spec.js b/tests/e2e/upgrade/upgrade.wdio-spec.js index 4c62f14aefc..e2fb523edfc 100644 --- a/tests/e2e/upgrade/upgrade.wdio-spec.js +++ b/tests/e2e/upgrade/upgrade.wdio-spec.js @@ -71,8 +71,7 @@ describe('Performing an upgrade', () => { }); }); - // TODO Enable this test after 4.6.0 is released - xit('should have valid semver after installing', async () => { + it('should have valid semver after installing', async () => { const deployInfo = await utils.request({ path: '/api/deploy-info' }); expect(semver.valid(deployInfo.version)).to.be.ok; }); @@ -105,7 +104,8 @@ describe('Performing an upgrade', () => { const staged = ddocs.filter(ddoc => ddoc._id.includes('staged')); expect(staged.length).to.equal(0); - ddocs.forEach(ddoc => expect(ddoc.version).to.equal(currentBuild)); + // For tags (betas and releases) we don't actually show the build number on the upgrade page + ddocs.forEach(ddoc => expect(ddoc.version).to.include(currentBuild)); const deployInfo = await utils.request({ path: '/api/deploy-info' }); expect(semver.valid(deployInfo.version)).to.be.ok;