DEV: prevents badges tests to log 404 (#13859)

This commit is contained in:
Joffrey JAFFEUX 2021-07-27 14:46:49 +02:00 committed by GitHub
parent cdeaddbbb6
commit 8ded33c411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View File

@ -67,9 +67,7 @@ acceptance("Admin - Badges - Show", function (needs) {
assert.ok(!exists(".icon-picker"), "icon picker is not visible"); assert.ok(!exists(".icon-picker"), "icon picker is not visible");
assert.ok(exists(".image-uploader"), "image uploader is visible"); assert.ok(exists(".image-uploader"), "image uploader is visible");
assert.ok( assert.ok(
query(".image-uploader a.lightbox").href.endsWith( query(".image-uploader a.lightbox").href.endsWith("/images/avatar.png?2"),
"/assets/some-image.png"
),
"image uploader shows the right image" "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(".icon-picker"), "icon picker is not visible");
assert.ok(exists(".image-uploader"), "image uploader is visible"); assert.ok(exists(".image-uploader"), "image uploader is visible");
assert.ok( assert.ok(
query(".image-uploader a.lightbox").href.endsWith( query(".image-uploader a.lightbox").href.endsWith("/images/avatar.png?3"),
"/assets/some-image.png"
),
"image uploader shows the right image" "image uploader shows the right image"
); );

View File

@ -1719,13 +1719,13 @@ export default {
{ {
id: 2, id: 2,
name: "Only image", name: "Only image",
image_url: "/assets/some-image.png", image_url: "/images/avatar.png?2",
}, },
{ {
id: 3, id: 3,
name: "Both image and icon", name: "Both image and icon",
icon: "fa-rocket", icon: "fa-rocket",
image_url: "/assets/some-image.png", image_url: "/images/avatar.png?3",
multiple_grant: true, multiple_grant: true,
}, },
] ]