Skip to content

Commit

Permalink
Merge branch 'jeffdaley/related-resource-attributes' into jeffdaley/e…
Browse files Browse the repository at this point in the history
…xpand-related-resource-model
  • Loading branch information
jeffdaley committed Oct 18, 2023
2 parents 0c721d6 + 02a5abc commit 4688704
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ module(
setupMirage(hooks);

hooks.beforeEach(async function (
this: DocumentSidebarRelatedResourcesListItemTestContext
this: DocumentSidebarRelatedResourcesListItemTestContext,
) {
this.server.create("document");

const documentAttrs = this.server.schema.document.first().attrs;
this.set("document", {
googleFileID: documentAttrs.objectID,
title: documentAttrs.title,
type: documentAttrs.docType,
documentType: documentAttrs.docType,
documentNumber: documentAttrs.docNumber,
sortOrder: 1,
});
Expand Down Expand Up @@ -166,7 +166,7 @@ module(
.exists({ count: 2 }, "two buttons are present for external resources");

const editButton = htmlElement(
`${DROPDOWN_LIST_ITEM_SELECTOR}:nth-child(1) button`
`${DROPDOWN_LIST_ITEM_SELECTOR}:nth-child(1) button`,
);

assert.dom(editButton).hasText("Edit", "edit button is present");
Expand All @@ -187,13 +187,13 @@ module(
await click(OVERFLOW_BUTTON_SELECTOR);

const removeButton = htmlElement(
`${DROPDOWN_LIST_ITEM_SELECTOR}:nth-child(2) button`
`${DROPDOWN_LIST_ITEM_SELECTOR}:nth-child(2) button`,
);
assert.dom(removeButton).hasText("Remove", "remove button is present");

await click(removeButton);

assert.equal(count, 2, "remove button was clicked");
});
}
},
);

0 comments on commit 4688704

Please sign in to comment.