We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5be1a1 commit c85f1e6Copy full SHA for c85f1e6
1 file changed
src/atoms/buttons/button.test.tsx
@@ -19,6 +19,19 @@ describe("Button", () => {
19
});
20
21
22
+ it("when accessibleText provided, renders child accessible span", () => {
23
+ // Arrange
24
+ const expected = faker.random.word();
25
+
26
+ // Act
27
+ const { getByText } = render(
28
+ <Button accessibleText={expected}></Button>
29
+ );
30
31
+ // Assert
32
+ expect(getByText(expected)).not.toBeUndefined();
33
+ });
34
35
it("when cssClassName provided, adds provided className to button", () => {
36
// Arrange
37
const expected = faker.random.word();
0 commit comments