Skip to content

Commit

Permalink
Fix test to be resilient on browser size
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Sep 8, 2024
1 parent 18574cf commit 3e10ef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/ember-vite/tests/acceptance/local-images-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module('Acceptance | local images', function (hooks) {
.hasClass('eri-responsive')
.hasAttribute(
'src',
new RegExp(`/assets/dog-3840w(-[a-zA-Z0-9-_]+)?.jpg`),
new RegExp(`/assets/dog-[0-9]+w(-[a-zA-Z0-9-_]+)?.jpg`),
`has default src`,
);

Expand Down
2 changes: 1 addition & 1 deletion apps/ember-webpack/tests/acceptance/local-images-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module('Acceptance | local images', function (hooks) {
.hasClass('eri-responsive')
.hasAttribute(
'src',
new RegExp(`/images/dog-3840w(-\\w+)?.jpg`),
new RegExp(`/images/dog-[0-9]+w(-\\w+)?.jpg`),
`has default src`,
);

Expand Down

0 comments on commit 3e10ef0

Please sign in to comment.