Skip to content

Commit

Permalink
remove parantheses from file names
Browse files Browse the repository at this point in the history
  • Loading branch information
kendallgassner committed Jan 27, 2025
1 parent bd58df1 commit 5c7718b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/components/Axe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ 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, '')

Check warning

Code scanning / CodeQL

Replacement of a substring with itself Medium

This replaces the empty string with itself.
test.describe(id, () => {
for (const theme of themes) {
test.describe(theme, () => {
test(name, async ({page}) => {
test(cleanedName, async ({page}) => {
await visit(page, {
id,
globals: {
Expand Down

0 comments on commit 5c7718b

Please sign in to comment.