Skip to content

Commit ee7acdc

Browse files
authored
Merge branch 'main' into hectahertz/dialog-footer-wrapping
2 parents e1bd9f4 + f917b33 commit ee7acdc

25 files changed

+11
-2094
lines changed

.changeset/seven-hounds-refuse.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Replaced raw values for duration and easing with primitives

e2e/components/Avatar.test.ts

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,6 @@ test.describe('Avatar', () => {
1717
// Default state
1818
expect(await page.screenshot()).toMatchSnapshot(`Avatar.Default.${theme}.png`)
1919
})
20-
21-
test('axe @aat', async ({page}) => {
22-
await visit(page, {
23-
id: 'components-avatar--default',
24-
globals: {
25-
colorScheme: theme,
26-
},
27-
})
28-
await expect(page).toHaveNoViolations({
29-
rules: {
30-
'color-contrast': {
31-
enabled: theme !== 'dark_dimmed',
32-
},
33-
},
34-
})
35-
})
3620
})
3721
}
3822
})
@@ -51,22 +35,6 @@ test.describe('Avatar', () => {
5135
// Default state
5236
expect(await page.screenshot()).toMatchSnapshot(`Avatar.Size.${theme}.png`)
5337
})
54-
55-
test('axe @aat', async ({page}) => {
56-
await visit(page, {
57-
id: 'components-avatar-features--size',
58-
globals: {
59-
colorScheme: theme,
60-
},
61-
})
62-
await expect(page).toHaveNoViolations({
63-
rules: {
64-
'color-contrast': {
65-
enabled: theme !== 'dark_dimmed',
66-
},
67-
},
68-
})
69-
})
7038
})
7139
}
7240
})
@@ -85,22 +53,6 @@ test.describe('Avatar', () => {
8553
// Default state
8654
expect(await page.screenshot()).toMatchSnapshot(`Avatar.Size Responsive.${theme}.png`)
8755
})
88-
89-
test('axe @aat', async ({page}) => {
90-
await visit(page, {
91-
id: 'components-avatar-features--size-responsive',
92-
globals: {
93-
colorScheme: theme,
94-
},
95-
})
96-
await expect(page).toHaveNoViolations({
97-
rules: {
98-
'color-contrast': {
99-
enabled: theme !== 'dark_dimmed',
100-
},
101-
},
102-
})
103-
})
10456
})
10557
}
10658
})
@@ -119,22 +71,6 @@ test.describe('Avatar', () => {
11971
// Default state
12072
expect(await page.screenshot()).toMatchSnapshot(`Avatar.Square.${theme}.png`)
12173
})
122-
123-
test('axe @aat', async ({page}) => {
124-
await visit(page, {
125-
id: 'components-avatar-features--square',
126-
globals: {
127-
colorScheme: theme,
128-
},
129-
})
130-
await expect(page).toHaveNoViolations({
131-
rules: {
132-
'color-contrast': {
133-
enabled: theme !== 'dark_dimmed',
134-
},
135-
},
136-
})
137-
})
13874
})
13975
}
14076
})

e2e/components/AvatarPair.test.ts

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,6 @@ test.describe('AvatarPair', () => {
1717
// Default state
1818
expect(await page.screenshot()).toMatchSnapshot(`AvatarPair.Default.${theme}.png`)
1919
})
20-
21-
test('axe @aat', async ({page}) => {
22-
await visit(page, {
23-
id: 'components-avatarpair--default',
24-
globals: {
25-
colorScheme: theme,
26-
},
27-
})
28-
await expect(page).toHaveNoViolations({
29-
rules: {
30-
'color-contrast': {
31-
enabled: theme !== 'dark_dimmed',
32-
},
33-
},
34-
})
35-
})
3620
})
3721
}
3822
})
@@ -51,22 +35,6 @@ test.describe('AvatarPair', () => {
5135
// Default state
5236
expect(await page.screenshot()).toMatchSnapshot(`AvatarPair.Parent Circle.${theme}.png`)
5337
})
54-
55-
test('axe @aat', async ({page}) => {
56-
await visit(page, {
57-
id: 'components-avatarpair-features--parent-circle',
58-
globals: {
59-
colorScheme: theme,
60-
},
61-
})
62-
await expect(page).toHaveNoViolations({
63-
rules: {
64-
'color-contrast': {
65-
enabled: theme !== 'dark_dimmed',
66-
},
67-
},
68-
})
69-
})
7038
})
7139
}
7240
})
@@ -85,22 +53,6 @@ test.describe('AvatarPair', () => {
8553
// Default state
8654
expect(await page.screenshot()).toMatchSnapshot(`AvatarPair.Parent Square.${theme}.png`)
8755
})
88-
89-
test('axe @aat', async ({page}) => {
90-
await visit(page, {
91-
id: 'components-avatarpair-features--parent-square',
92-
globals: {
93-
colorScheme: theme,
94-
},
95-
})
96-
await expect(page).toHaveNoViolations({
97-
rules: {
98-
'color-contrast': {
99-
enabled: theme !== 'dark_dimmed',
100-
},
101-
},
102-
})
103-
})
10456
})
10557
}
10658
})

e2e/components/Breadcrumbs.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,6 @@ test.describe('Breadcrumbs', () => {
2525
await page.keyboard.press('Tab')
2626
expect(await page.screenshot()).toMatchSnapshot(`Breadcrumbs.Default.${theme}.focus.png`)
2727
})
28-
29-
test('axe @aat', async ({page}) => {
30-
await visit(page, {
31-
id: 'components-breadcrumbs--default',
32-
globals: {
33-
colorScheme: theme,
34-
},
35-
})
36-
await expect(page).toHaveNoViolations({
37-
rules: {
38-
'color-contrast': {
39-
enabled: theme !== 'dark_dimmed',
40-
},
41-
},
42-
})
43-
})
4428
})
4529
}
4630
})

0 commit comments

Comments
 (0)