Skip to content

Commit

Permalink
fixed check url click action test for running in pro version
Browse files Browse the repository at this point in the history
  • Loading branch information
Fellan-91 committed Aug 21, 2024
1 parent 80696b9 commit 22e94a7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/e2e/specs/click-action-images.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,13 @@ test.describe('click action gallery images', () => {

expectedUrlPreset[key].titleUrl = foundImage.imgUrl;

const match = foundImage.imgUrl.match(/(\d+x\d+)/);
if (typeof process.env.CORE === 'undefined') {
const match = foundImage.imgUrl.match(/(\d+x\d+)/);

if (match) {
const size = match[0];
await prepareUrlFixture(size, 'titleUrl', key);
if (match) {
const size = match[0];
await prepareUrlFixture(size, 'titleUrl', key);
}
}
}
});
Expand Down

0 comments on commit 22e94a7

Please sign in to comment.