Skip to content

Commit 3a1e404

Browse files
author
Eugene Olonov
committed
Give the second card in hack.roleMod.html a distinct speak
Both cards had speak 'Hello, World!', so the live region snapshot read the same line twice.
1 parent bdcfcf6 commit 3a1e404

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎__tests__/html2/accessibility/adaptiveCard/hack.roleMod.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
type: 'AdaptiveCard',
4545
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
4646
version: '1.5',
47-
speak: 'Hello, World!',
47+
speak: 'Please enter your full name',
4848
body: [
4949
{
5050
type: 'Input.Text',
@@ -75,7 +75,7 @@
7575

7676
await pageConditions.liveRegionStabilized();
7777

78-
// THEN: The live region shows what screen readers announce: "Bot said:", "A card: Hello, World!" (the "speak" property) for each card, then the input of the second card.
78+
// THEN: The live region shows what screen readers announce: "Bot said:", one line per card from its "speak" property ("A card: Hello, World!", "A card: Please enter your full name"), then the input of the second card.
7979
await host.snapshot('local');
8080
});
8181
</script>
1.58 KB
Loading

0 commit comments

Comments
 (0)