DEV: Quick fix to flaky test (#15644)

We know that the real problem has got to do with cloaking (/t/10298), but while we find out precisely why, here's a quick fix.

Similar to #15627
This commit is contained in:
Natalie Tay 2022-01-19 11:23:35 +08:00 committed by GitHub
parent 12f041de5d
commit 3050fe893b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -309,8 +309,8 @@ acceptance("Composer Actions", function (needs) {
test("replying to post - toggle_topic_bump", async function (assert) {
const composerActions = selectKit(".composer-actions");
await visit("/t/internationalization-localization/280");
await click("article#post_3 button.reply");
await visit("/t/short-topic-with-two-posts/54077");
await click("article#post_2 button.reply");
assert.ok(
!exists(".composer-actions svg.d-icon-anchor"),
@ -352,8 +352,8 @@ acceptance("Composer Actions", function (needs) {
test("replying to post - whisper and no bump", async function (assert) {
const composerActions = selectKit(".composer-actions");
await visit("/t/internationalization-localization/280");
await click("article#post_3 button.reply");
await visit("/t/short-topic-with-two-posts/54077");
await click("article#post_2 button.reply");
assert.ok(
!exists(".composer-actions svg.d-icon-far-eye-slash"),

View File

@ -43,7 +43,7 @@ acceptance("Share and Invite modal", function (needs) {
});
test("Post date link", async function (assert) {
await visit("/t/internationalization-localization/280");
await visit("/t/short-topic-with-two-posts/54077");
await click("#post_2 .post-info.post-date a");
assert.ok(exists("#share-link"), "it shows the share modal");