diff --git a/app/assets/javascripts/discourse/tests/acceptance/admin-badges-show-test.js b/app/assets/javascripts/discourse/tests/acceptance/admin-badges-show-test.js index 8670f9aeea0..e0a52b16451 100644 --- a/app/assets/javascripts/discourse/tests/acceptance/admin-badges-show-test.js +++ b/app/assets/javascripts/discourse/tests/acceptance/admin-badges-show-test.js @@ -67,9 +67,7 @@ acceptance("Admin - Badges - Show", function (needs) { assert.ok(!exists(".icon-picker"), "icon picker is not visible"); assert.ok(exists(".image-uploader"), "image uploader is visible"); assert.ok( - query(".image-uploader a.lightbox").href.endsWith( - "/assets/some-image.png" - ), + query(".image-uploader a.lightbox").href.endsWith("/images/avatar.png?2"), "image uploader shows the right image" ); }); @@ -87,9 +85,7 @@ acceptance("Admin - Badges - Show", function (needs) { assert.ok(!exists(".icon-picker"), "icon picker is not visible"); assert.ok(exists(".image-uploader"), "image uploader is visible"); assert.ok( - query(".image-uploader a.lightbox").href.endsWith( - "/assets/some-image.png" - ), + query(".image-uploader a.lightbox").href.endsWith("/images/avatar.png?3"), "image uploader shows the right image" ); diff --git a/app/assets/javascripts/discourse/tests/fixtures/badges-fixture.js b/app/assets/javascripts/discourse/tests/fixtures/badges-fixture.js index bc6530686ef..1da5bc8c36b 100644 --- a/app/assets/javascripts/discourse/tests/fixtures/badges-fixture.js +++ b/app/assets/javascripts/discourse/tests/fixtures/badges-fixture.js @@ -1719,13 +1719,13 @@ export default { { id: 2, name: "Only image", - image_url: "/assets/some-image.png", + image_url: "/images/avatar.png?2", }, { id: 3, name: "Both image and icon", icon: "fa-rocket", - image_url: "/assets/some-image.png", + image_url: "/images/avatar.png?3", multiple_grant: true, }, ]