Skip to content

Commit

Permalink
test(shell-center-row): fix test (#8812)
Browse files Browse the repository at this point in the history
**Related Issue:** #7180 

## Summary

This selects the correct component within the shadow dom. The previous
selector included the components <style> tag.
  • Loading branch information
alisonailea authored Feb 22, 2024
1 parent 93b2563 commit 49838b7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ describe("calcite-shell-center-row", () => {
`;
await page.setContent(pageContent);

const element = await page.find("calcite-shell-center-row");
const element = await page.find("calcite-shell-center-row >>> div:first-of-type");

await page.waitForChanges();

expect(element.shadowRoot.firstElementChild).toHaveClass(CSS.actionBarContainer);
expect(element).toHaveClass(CSS.actionBarContainer);
});

it("should render action bar container last when action bar has end position", async () => {
Expand Down

0 comments on commit 49838b7

Please sign in to comment.