-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
a0cd300
commit 1f2fff8
Showing
4 changed files
with
165 additions
and
126 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
import { getInput } from "../../test-utils/accessibility-assertions"; | ||
import Input from "./Input.svelte"; | ||
import { commonControlScenarios, commonRenderingScenarios } from "../../test-utils/scenarios.dom"; | ||
import { getInput } from "../../test-utils/accessibility-assertions"; | ||
import { focus, type, word } from "../../test-utils/interactions"; | ||
import { | ||
commonControlScenarios, | ||
commonFormScenarios, | ||
commonRenderingScenarios, | ||
} from "../../test-utils/scenarios.dom"; | ||
|
||
commonRenderingScenarios(Input, { getElement: getInput }); | ||
commonControlScenarios(Input); | ||
describe.skip("commonFormScenarios", () => {}); | ||
commonFormScenarios(Input, { | ||
async performUserInteraction(input) { | ||
await focus(input); | ||
await type(word("alice")); | ||
}, | ||
}); |
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,6 +1,17 @@ | ||
import { getTextarea } from "../../test-utils/accessibility-assertions"; | ||
import { commonControlScenarios, commonRenderingScenarios } from "../../test-utils/scenarios.dom"; | ||
import Textarea from "./Textarea.svelte"; | ||
import { getTextarea } from "../../test-utils/accessibility-assertions"; | ||
import { focus, type, word } from "../../test-utils/interactions"; | ||
import { | ||
commonControlScenarios, | ||
commonFormScenarios, | ||
commonRenderingScenarios, | ||
} from "../../test-utils/scenarios.dom"; | ||
|
||
commonRenderingScenarios(Textarea, { getElement: getTextarea }); | ||
commonControlScenarios(Textarea); | ||
commonFormScenarios(Textarea, { | ||
async performUserInteraction(control) { | ||
await focus(control); | ||
await type(word("alice")); | ||
}, | ||
}); |
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