From ed55c21b73b5829207cf4a2306129905b2be7232 Mon Sep 17 00:00:00 2001 From: Pandaski Date: Tue, 12 Sep 2023 09:49:00 +1000 Subject: [PATCH] Fix broken module version check --- cy/cypress/integration/1-baseline/modules.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cy/cypress/integration/1-baseline/modules.spec.js b/cy/cypress/integration/1-baseline/modules.spec.js index e0c11cf..fbd730f 100644 --- a/cy/cypress/integration/1-baseline/modules.spec.js +++ b/cy/cypress/integration/1-baseline/modules.spec.js @@ -7,7 +7,8 @@ let modules = Object.entries(packages['require']).filter((str) => { describe('Cross check module and library versions', () => { modules.forEach((module, i) => { it(`${module}`, () => { - cy.composerCommand('show ' + module[0] + ' | grep versions').its('stdout').should('contain', module[1]) + const moduleVersion = module[1].substring(0, module[1].indexOf(" as")); + cy.composerCommand('show ' + module[0] + ' | grep versions').its('stdout').should('contain', moduleVersion) }) }) })