Skip to content

Commit 9cefb95

Browse files
Fix Button e2e tests (#2823)
* fix tests * test(e2e): update id for button tests --------- Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
1 parent ada83a3 commit 9cefb95

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

e2e/components/Button.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ test.describe('Button', () => {
7676
test.describe(theme, () => {
7777
test('default @vrt', async ({page}) => {
7878
await visit(page, {
79-
id: 'components-button-features--default',
79+
id: 'components-button--default',
8080
globals: {
8181
colorScheme: theme,
8282
},
@@ -88,7 +88,7 @@ test.describe('Button', () => {
8888

8989
test('axe @aat', async ({page}) => {
9090
await visit(page, {
91-
id: 'components-button-features--default',
91+
id: 'components-button--default',
9292
globals: {
9393
colorScheme: theme,
9494
},

e2e/components/IconButton.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ test.describe('IconButton', () => {
7676
test.describe(theme, () => {
7777
test('default @vrt', async ({page}) => {
7878
await visit(page, {
79-
id: 'components-iconbutton-features--default',
79+
id: 'components-iconbutton--default',
8080
globals: {
8181
colorScheme: theme,
8282
},
@@ -88,7 +88,7 @@ test.describe('IconButton', () => {
8888

8989
test('axe @aat', async ({page}) => {
9090
await visit(page, {
91-
id: 'components-iconbutton-features--default',
91+
id: 'components-iconbutton--default',
9292
globals: {
9393
colorScheme: theme,
9494
},

e2e/components/LinkButton.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ test.describe('LinkButton', () => {
7676
test.describe(theme, () => {
7777
test('default @vrt', async ({page}) => {
7878
await visit(page, {
79-
id: 'components-linkbutton-features--default',
79+
id: 'components-linkbutton--default',
8080
globals: {
8181
colorScheme: theme,
8282
},
@@ -88,7 +88,7 @@ test.describe('LinkButton', () => {
8888

8989
test('axe @aat', async ({page}) => {
9090
await visit(page, {
91-
id: 'components-linkbutton-features--default',
91+
id: 'components-linkbutton--default',
9292
globals: {
9393
colorScheme: theme,
9494
},

script/generate-e2e-tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const components = new Map([
8484
name: 'Danger',
8585
},
8686
{
87-
id: 'components-button-features--default',
87+
id: 'components-button--default',
8888
name: 'Default',
8989
},
9090
{
@@ -143,7 +143,7 @@ const components = new Map([
143143
name: 'Danger',
144144
},
145145
{
146-
id: 'components-iconbutton-features--default',
146+
id: 'components-iconbutton--default',
147147
name: 'Default',
148148
},
149149
{
@@ -186,7 +186,7 @@ const components = new Map([
186186
name: 'Danger',
187187
},
188188
{
189-
id: 'components-linkbutton-features--default',
189+
id: 'components-linkbutton--default',
190190
name: 'Default',
191191
},
192192
{

0 commit comments

Comments
 (0)