mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:33:39 +08:00
DEV: prevents badges tests to log 404 (#13859)
This commit is contained in:
parent
cdeaddbbb6
commit
8ded33c411
|
@ -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"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user