Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test
Browse files Browse the repository at this point in the history
rachelbt committed Dec 25, 2024
1 parent b8a89cd commit 9468222
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions libs/components/src/lib/elevation/elevation.spec.ts
Original file line number Diff line number Diff line change
@@ -64,6 +64,22 @@ describe('vwc-elevation', () => {
expect(Boolean(element.shadowRoot?.querySelector('slot'))).toEqual(true);
});

describe('no position', () => {
it('should add class .no-position to .base if no-position attribute is added o host', async () => {
element.noPosition = true;
await elementUpdated(element);
expect(getControlElement(element).classList.contains('.no-position'));
});
});

describe('no shadow', () => {
it('should add class .no-shadow to .base if no-shadow attribute is added o host', async () => {
element.noPosition = true;
await elementUpdated(element);
expect(getControlElement(element).classList.contains('.no-shadow'));
});
});

describe('a11y', () => {
it('should pass html a11y test', async () => {
expect(await axe(element)).toHaveNoViolations();

0 comments on commit 9468222

Please sign in to comment.