DEV: Add acceptance tests for bookmarks with reminders (#9592)

This commit is contained in:
Martin Brennan
2020-04-30 14:58:26 +10:00
committed by GitHub
parent d6df92b074
commit 10f9f295dc
5 changed files with 177 additions and 17 deletions

View File

@ -248,9 +248,9 @@ QUnit.test("remove featured link", async assert => {
"link to remove featured link"
);
await click('.title-wrapper .remove-featured-link');
await click('.title-wrapper .submit-edit');
assert.ok(!exists('.title-wrapper .topic-featured-link'), 'link is gone');
await click(".title-wrapper .remove-featured-link");
await click(".title-wrapper .submit-edit");
assert.ok(!exists(".title-wrapper .topic-featured-link"), "link is gone");
});
QUnit.test("Converting to a public topic", async assert => {
@ -395,17 +395,6 @@ QUnit.test(
}
);
acceptance("Topic + Post Bookmarks with Reminders", {
loggedIn: true
});
QUnit.test("Bookmarks Modal", async assert => {
await visit("/t/internationalization-localization/280");
await click(".topic-post:first-child button.show-more-actions");
await click(".topic-post:first-child button.bookmark");
assert.ok(exists("#bookmark-reminder-modal"), "it shows the bookmark modal");
});
acceptance("Topic with title decorated", {
loggedIn: true,
beforeEach() {