-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
31 additions
and
100 deletions.
There are no files selected for viewing
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ages/testkit/src/__TESTS__/button.spec.js → packages/testkit/__TESTS__/button.spec.js
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
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
...es/testkit/src/__TESTS__/dropdown.spec.js → packages/testkit/__TESTS__/dropdown.spec.js
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,20 +1,20 @@ | ||
import { test, expect } from "@playwright/test"; | ||
import { DropDown } from "../inputs/DropDown"; | ||
import { Dropdown } from "../inputs/Dropdown"; | ||
|
||
|
||
test.describe("dropdown Class with Storybook", () => { | ||
let Dropdown; | ||
let DropDown; | ||
|
||
test.beforeEach(async ({ page }) => { | ||
await page.goto("/?path=/story/inputs-dropdown--overview"); | ||
const frame = page.frameLocator("[id='storybook-preview-iframe']"); | ||
const DropDownLocator = frame.locator('[id="dropdown-menu-id"]'); | ||
Dropdown = new DropDown(page, DropDownLocator, "Test DropDown"); | ||
DropDown = new Dropdown(page, DropDownLocator, "Test DropDown"); | ||
}); | ||
|
||
test("set dropdown value", async ({page}) => { | ||
await Dropdown.selectItem("2"); | ||
await DropDown.selectItem("2"); | ||
await page.waitForTimeout(500); | ||
expect(await Dropdown.getText()).toContain("Option 2"); | ||
expect(await DropDown.getText()).toContain("Option 2"); | ||
}); | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/testkit/src/inputs/index.ts → packages/testkit/inputs/index.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,5 +1,5 @@ | ||
export { TextField } from "./TextField"; | ||
export { DropDown } from "./DropDown"; | ||
export { Dropdown } from "./Dropdown"; | ||
export { Checkbox } from "./Checkbox"; | ||
export { TextArea } from "./TextArea"; | ||
export { Toggle } from "./Toggle"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.