@newskit-render/core 2.30.1 → 2.30.2
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 +8 -0
- package/cypress/plugins/index.js +3 -5
- package/cypress/support/index.js +1 -1
- package/cypress/visual/account/print-visual-regression.spec.js +4 -4
- package/cypress/visual/account/visual-regression.spec.js +3 -3
- package/package.json +5 -4
- package/tsconfig.json +1 -1
- package/applitools.config.js +0 -9
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
|
+
## [2.30.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@2.30.1-alpha.0...@newskit-render/core@2.30.1) (2022-12-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [2.30.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@2.30.0-alpha.0...@newskit-render/core@2.30.0) (2022-12-05)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @newskit-render/core
|
package/cypress/plugins/index.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
const projectDir = process.cwd()
|
|
25
25
|
loadEnvConfig(projectDir)
|
|
26
26
|
const conf = config
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
const dirPath =
|
|
29
29
|
config.integrationFolder === './cypress/e2e'
|
|
30
30
|
? path.resolve('./cypress/e2e')
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
return conf
|
|
41
41
|
})
|
|
42
42
|
const printVisualPath = path.resolve('./cypress/visual')
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
fs.readdir(printVisualPath, function (err, files) {
|
|
45
45
|
files.forEach(function (file) {
|
|
46
46
|
console.log(file, 'file logged')
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
on('task', {
|
|
50
50
|
log(message) {
|
|
51
51
|
console.log(message)
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
return null
|
|
54
54
|
},
|
|
55
55
|
table(message) {
|
|
@@ -59,5 +59,3 @@
|
|
|
59
59
|
})
|
|
60
60
|
return conf
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
require('@applitools/eyes-cypress')(module)
|
package/cypress/support/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as printSubscriptionPageProps from '../../fixtures/print-subscriptions/print-subscription-response.json'
|
|
2
2
|
|
|
3
3
|
describe('Visual regression for print and digi_print subscriptions', () => {
|
|
4
|
-
it('should show sections for print user
|
|
4
|
+
it('should show sections for print user subscriptions', () => {
|
|
5
5
|
cy.GetAcsSession('withSub')
|
|
6
6
|
cy.mockConsent()
|
|
7
7
|
cy.visitAndOverrideNextData(
|
|
@@ -9,8 +9,8 @@ describe('Visual regression for print and digi_print subscriptions', () => {
|
|
|
9
9
|
'props.pageProps.user.subscriptions',
|
|
10
10
|
printSubscriptionPageProps.props.pageProps.user.subscriptions
|
|
11
11
|
)
|
|
12
|
-
|
|
13
|
-
cy.
|
|
14
|
-
cy.
|
|
12
|
+
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
13
|
+
cy.wait(1000)
|
|
14
|
+
cy.percySnapshot('Subscription and Billing page for print subscriptions')
|
|
15
15
|
})
|
|
16
16
|
})
|
|
@@ -32,9 +32,9 @@ describe('Visual regression', () => {
|
|
|
32
32
|
pages.forEach(({ url, pageName }) => {
|
|
33
33
|
it(`should pass regression: ${pageName}`, () => {
|
|
34
34
|
cy.mockConsentAndVisit(url)
|
|
35
|
-
|
|
36
|
-
cy.
|
|
37
|
-
cy.
|
|
35
|
+
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
36
|
+
cy.wait(1000)
|
|
37
|
+
cy.percySnapshot(`${pageName} page`)
|
|
38
38
|
})
|
|
39
39
|
})
|
|
40
40
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "2.30.
|
|
3
|
+
"version": "2.30.2",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"test:unit:ci": "JEST_JUNIT_OUTPUT_NAME=core.xml node --max_old_space_size=4096 --expose-gc ./node_modules/.bin/jest --ci --coverage --reporters=default --reporters=jest-junit --runInBand --logHeapUsage",
|
|
18
18
|
"test:watch": "jest --watch",
|
|
19
19
|
"cy:run": "cypress run --config-file cypress/config/config.e2e.json -b chrome --headless",
|
|
20
|
-
"cy:vis": "cypress run --config-file cypress/config/config.visual.json -b chrome --headless",
|
|
20
|
+
"cy:vis": "percy exec -- cypress run --config-file cypress/config/config.visual.json -b chrome --headless",
|
|
21
21
|
"cy:open": "cypress open --config-file cypress/config/config.e2e.json -b chrome",
|
|
22
22
|
"cy:open:vis": "cypress open --config-file cypress/config/config.visual.json -b chrome",
|
|
23
23
|
"test:e2e": "yarn cy:run",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@newskit-render/checkout": "^1.8.0",
|
|
44
44
|
"@newskit-render/feature-flags": "^1.4.0",
|
|
45
45
|
"@newskit-render/feed": "^1.4.0",
|
|
46
|
-
"@newskit-render/my-account": "^3.22.
|
|
46
|
+
"@newskit-render/my-account": "^3.22.2",
|
|
47
47
|
"@newskit-render/shared-components": "^1.22.0",
|
|
48
48
|
"@newskit-render/standalone-components": "^1.14.0",
|
|
49
49
|
"@newskit-render/validation": "^1.5.0",
|
|
@@ -60,11 +60,12 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@apollo/react-testing": "4.0.0",
|
|
63
|
-
"@applitools/eyes-cypress": "3.23.2",
|
|
64
63
|
"@emotion/jest": "11.3.0",
|
|
65
64
|
"@next/bundle-analyzer": "12.0.8",
|
|
66
65
|
"@next/eslint-plugin-next": "13.0.5",
|
|
67
66
|
"@pact-foundation/pact": "9.12.1",
|
|
67
|
+
"@percy/cli": "1.16.0",
|
|
68
|
+
"@percy/cypress": "3.1.2",
|
|
68
69
|
"@testing-library/jest-dom": "5.16.5",
|
|
69
70
|
"@testing-library/react": "13.4.0",
|
|
70
71
|
"@types/newrelic": "7.0.0",
|
package/tsconfig.json
CHANGED