Skip to content

Commit

Permalink
DEV: Fix acceptance test when using the new topic map (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
jancernik authored Jul 22, 2024
1 parent e6c8a81 commit 67c15e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/javascripts/acceptance/endorsement-checkboxes-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ acceptance(

test("It allows the current user to endorse another via the user card", async (assert) => {
await visit("/t/internationalization-localization/280");
await click(".topic-map__users-trigger");
await click('a[data-user-card="charlie"]');

await click(".category-expert-endorse-btn");
Expand Down Expand Up @@ -86,6 +87,7 @@ acceptance("Discourse Category Experts - Has endorsement", function (needs) {

test("It shows the endorse button when the current user hasn't endorsed the user yet", async (assert) => {
await visit("/t/internationalization-localization/280");
await click(".topic-map__users-trigger");
await click('a[data-user-card="charlie"]');

assert.equal(queryAll(".category-expert-existing-endorsements").length, 1);
Expand Down Expand Up @@ -132,6 +134,7 @@ acceptance(

test("shows the out of endorsements alert instead of the save button", async (assert) => {
await visit("/t/internationalization-localization/280");
await click(".topic-map__users-trigger");
await click('a[data-user-card="charlie"]');

await click(".category-expert-endorse-btn");
Expand Down

0 comments on commit 67c15e7

Please sign in to comment.