DEV: Skip time-dependent bookmark test
This commit is contained in:
parent
03818e642a
commit
04e4932307
|
@ -196,20 +196,25 @@ test("Editing a bookmark", async assert => {
|
||||||
assert.verifySteps(["tomorrow"]);
|
assert.verifySteps(["tomorrow"]);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("Editing a bookmark that has a Later Today reminder, and it is before 6pm today", async assert => {
|
QUnit.skip(
|
||||||
mockSuccessfulBookmarkPost(assert);
|
"Editing a bookmark that has a Later Today reminder, and it is before 6pm today",
|
||||||
await visit("/t/internationalization-localization/280");
|
async assert => {
|
||||||
await openBookmarkModal();
|
// This test needs to mock the current time. sandbox.useFakeTimers() seems to break the `visit` step
|
||||||
await fillIn("input#bookmark-name", "Test name");
|
|
||||||
await click("#tap_tile_later_today");
|
mockSuccessfulBookmarkPost(assert);
|
||||||
await openEditBookmarkModal();
|
await visit("/t/internationalization-localization/280");
|
||||||
assert.not(
|
await openBookmarkModal();
|
||||||
exists("#bookmark-custon-date > input"),
|
await fillIn("input#bookmark-name", "Test name");
|
||||||
"it does not show the custom date input"
|
await click("#tap_tile_later_today");
|
||||||
);
|
await openEditBookmarkModal();
|
||||||
assert.ok(
|
assert.not(
|
||||||
exists("#tap_tile_later_today.active"),
|
exists("#bookmark-custon-date > input"),
|
||||||
"it preselects Later Today"
|
"it does not show the custom date input"
|
||||||
);
|
);
|
||||||
assert.verifySteps(["later_today"]);
|
assert.ok(
|
||||||
});
|
exists("#tap_tile_later_today.active"),
|
||||||
|
"it preselects Later Today"
|
||||||
|
);
|
||||||
|
assert.verifySteps(["later_today"]);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
Loading…
Reference in New Issue