@newskit-render/core 1.77.0 → 1.78.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.77.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@1.77.0-alpha.0...@newskit-render/core@1.77.0) (2022-07-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.76.4](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@1.76.4-alpha.0...@newskit-render/core@1.76.4) (2022-07-22)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @newskit-render/core
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const terminalLog = (violations) => {
|
|
2
|
+
cy.task(
|
|
3
|
+
'log',
|
|
4
|
+
`${violations.length} accessibility violation${
|
|
5
|
+
violations.length === 1 ? '' : 's'
|
|
6
|
+
} ${violations.length === 1 ? 'was' : 'were'} detected`
|
|
7
|
+
)
|
|
8
|
+
// pluck specific keys to keep the table readable
|
|
9
|
+
const violationData = violations.map(
|
|
10
|
+
({ id, impact, description, nodes }) => ({
|
|
11
|
+
id,
|
|
12
|
+
impact,
|
|
13
|
+
description,
|
|
14
|
+
nodes: nodes.length,
|
|
15
|
+
})
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
cy.task('table', violationData)
|
|
19
|
+
}
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
cy.task(
|
|
3
|
-
'log',
|
|
4
|
-
`${violations.length} accessibility violation${
|
|
5
|
-
violations.length === 1 ? '' : 's'
|
|
6
|
-
} ${violations.length === 1 ? 'was' : 'were'} detected`
|
|
7
|
-
)
|
|
8
|
-
// pluck specific keys to keep the table readable
|
|
9
|
-
const violationData = violations.map(
|
|
10
|
-
({ id, impact, description, nodes }) => ({
|
|
11
|
-
id,
|
|
12
|
-
impact,
|
|
13
|
-
description,
|
|
14
|
-
nodes: nodes.length,
|
|
15
|
-
})
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
cy.task('table', violationData)
|
|
19
|
-
}
|
|
1
|
+
import { terminalLog } from '../../axe/terminal-log'
|
|
20
2
|
|
|
21
3
|
const pages = [
|
|
22
|
-
{
|
|
23
|
-
url: '/account',
|
|
24
|
-
name: 'Personal Details',
|
|
25
|
-
},
|
|
4
|
+
{ url: '/account', name: 'Personal Details' },
|
|
26
5
|
{ url: '/account/edit/name', name: 'Name form' },
|
|
27
6
|
{ url: '/account/edit/displayName', name: 'Display Name form' },
|
|
28
7
|
{ url: '/account/edit/email', name: 'Email form' },
|
|
@@ -43,7 +22,8 @@ const pages = [
|
|
|
43
22
|
// {
|
|
44
23
|
// url: '/account/payment',
|
|
45
24
|
// name: 'Payment form',
|
|
46
|
-
// skip: { skipFailures: true },
|
|
25
|
+
// skip: { skipFailures: true },
|
|
26
|
+
// error being caused by Stripe, ignore at this time
|
|
47
27
|
// },
|
|
48
28
|
{
|
|
49
29
|
url: '/account/newsletters-and-alerts',
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { terminalLog } from '../../axe/terminal-log'
|
|
2
|
+
|
|
3
|
+
const pages = [
|
|
4
|
+
{ url: '/help-hub', name: 'Landing Page' },
|
|
5
|
+
{ url: '/help-hub/results?q=google', name: 'Search Page' },
|
|
6
|
+
{ url: '/help-hub/article/sign-with-google', name: 'Article Page' },
|
|
7
|
+
]
|
|
8
|
+
|
|
9
|
+
describe('Page accessibility', () => {
|
|
10
|
+
pages.forEach(({ url, name, skip }) => {
|
|
11
|
+
it(`Should pass a11y tests: ${name}`, () => {
|
|
12
|
+
cy.mockConsentAndVisit(url)
|
|
13
|
+
cy.injectAxe()
|
|
14
|
+
cy.checkA11y(null, null, terminalLog, skip)
|
|
15
|
+
|
|
16
|
+
cy.get('[data-testid="autocomplete-input"]').type('Google')
|
|
17
|
+
|
|
18
|
+
cy.checkA11y(null, null, terminalLog, false)
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.78.0-alpha.0",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"@apollo/client": "3.4.16",
|
|
36
36
|
"@newskit-render/api": "^0.36.0",
|
|
37
37
|
"@newskit-render/auth": "^0.44.0",
|
|
38
|
-
"@newskit-render/checkout": "^0.51.
|
|
38
|
+
"@newskit-render/checkout": "^0.51.3-alpha.0",
|
|
39
39
|
"@newskit-render/feature-flags": "^0.24.0",
|
|
40
40
|
"@newskit-render/feed": "^0.24.0",
|
|
41
41
|
"@newskit-render/my-account": "^0.184.0",
|
|
42
42
|
"@newskit-render/shared-components": "^0.68.0",
|
|
43
|
-
"@newskit-render/standalone-components": "^0.
|
|
43
|
+
"@newskit-render/standalone-components": "^0.31.0-alpha.0",
|
|
44
44
|
"@newskit-render/validation": "^0.50.0",
|
|
45
45
|
"cross-fetch": "3.1.5",
|
|
46
46
|
"graphql": "15.6.0",
|