Skip to content

Commit

Permalink
remove /
Browse files Browse the repository at this point in the history
  • Loading branch information
kendallgassner committed Jan 27, 2025
1 parent e62e240 commit ee4a6bd
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions e2e/components/Axe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ import componentsConfig from '../../packages/react/storybook-static/index.json'
import {visit} from '../test-helpers/storybook'
import {themes} from '../test-helpers/themes'

/**
* These stories should not be tested in the CI because they are stress-tests and
* perform slowly
*/
const SKIPPED_TESTS = [
'components-treeview-features--stress-test',
'components-treeview-features--contain-intrinsic-size ',
]

type Component = {
name: string
}
Expand All @@ -13,12 +22,17 @@ const {entries} = componentsConfig
test.describe('@aat', () => {
for (const [id, entry] of Object.entries(entries as Record<string, Component>)) {
const {name} = entry
// remove parentheses from the name to avoid playwright file issues
const cleanedName = name.replaceAll(/[()]/g, '')
// remove parentheses and slashes from the name to avoid playwright file issues
const cleanedName = name.replaceAll(/[\(\)\/]/g, '')

Check failure on line 26 in e2e/components/Axe.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unnecessary escape character: \(

Check failure on line 26 in e2e/components/Axe.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unnecessary escape character: \)

Check failure on line 26 in e2e/components/Axe.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unnecessary escape character: \/

test.describe(id, () => {
for (const theme of themes) {
test.describe(theme, () => {
test(cleanedName, async ({page}) => {
if (SKIPPED_TESTS.includes(id)) {
return
}

await visit(page, {
id,
globals: {
Expand Down

0 comments on commit ee4a6bd

Please sign in to comment.