This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed layout from action-group and associated styles and e2e. (#967)
- Loading branch information
Showing
6 changed files
with
12 additions
and
49 deletions.
There are no files selected for viewing
20 changes: 2 additions & 18 deletions
20
src/components/calcite-action-group/calcite-action-group.e2e.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,14 @@ | ||
import { accessible, hidden, renders } from "../../tests/commonTests"; | ||
import { newE2EPage } from "@stencil/core/testing"; | ||
|
||
describe("calcite-action-group", () => { | ||
it("renders", async () => renders("calcite-action-group")); | ||
|
||
it("honors hidden attribute", async () => hidden("calcite-action-group")); | ||
|
||
it("defaults", async () => { | ||
const page = await newE2EPage(); | ||
|
||
await page.setContent(` | ||
<calcite-action-pad> | ||
<calcite-action-group> | ||
<calcite-action text="hello"></calcite-action> | ||
</calcite-action-group> | ||
</calcite-action-pad> | ||
`); | ||
const element = await page.find("calcite-action-group"); | ||
expect(element.getAttribute("layout")).toBe("vertical"); | ||
expect(element.getAttribute("layout")).not.toBe("horizontal"); | ||
}); | ||
|
||
it("should be accessible", async () => | ||
accessible(` | ||
<calcite-action-group> | ||
<calcite-action text="Add" icon="plus"></calcite-action> | ||
</calcite-action-group> | ||
<calcite-action text="Add" icon="plus"></calcite-action> | ||
</calcite-action-group> | ||
`)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters