@newskit-render/core 4.20.5 → 4.21.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
|
+
## [4.20.5](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.20.5-alpha.1...@newskit-render/core@4.20.5) (2023-11-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [4.20.4](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.20.4-alpha.0...@newskit-render/core@4.20.4) (2023-11-28)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @newskit-render/core
|
|
@@ -39,11 +39,11 @@ describe('Personal details without user', () => {
|
|
|
39
39
|
|
|
40
40
|
describe('Personal details with account', () => {
|
|
41
41
|
beforeEach(() => {
|
|
42
|
-
cy.GetTnlAcsSession('
|
|
42
|
+
cy.GetTnlAcsSession('digitalCard')
|
|
43
43
|
cy.mockConsentAndVisit('/account')
|
|
44
44
|
})
|
|
45
45
|
|
|
46
|
-
it('Should display logged-in user data', () => {
|
|
46
|
+
it.only('Should display logged-in user data', () => {
|
|
47
47
|
cy.contains('[data-testid="ContentListIntroduction"]', 'Profile')
|
|
48
48
|
cy.contains('Name')
|
|
49
49
|
cy.contains('John Smith')
|
|
@@ -73,7 +73,7 @@ describe('Personal details with account', () => {
|
|
|
73
73
|
|
|
74
74
|
describe('Personal detail edit pages', () => {
|
|
75
75
|
beforeEach(() => {
|
|
76
|
-
cy.GetTnlAcsSession('
|
|
76
|
+
cy.GetTnlAcsSession('digitalCard')
|
|
77
77
|
cy.mockConsentAndVisit('/account')
|
|
78
78
|
})
|
|
79
79
|
|
|
@@ -1004,16 +1004,21 @@ describe('Personal detail edit pages', () => {
|
|
|
1004
1004
|
cy.url().should('eq', 'http://localhost:3000/account')
|
|
1005
1005
|
})
|
|
1006
1006
|
|
|
1007
|
-
it('Should not show modal when selected country is UK,
|
|
1008
|
-
cy.GetTnlAcsSession('
|
|
1007
|
+
it('Should not show modal when selected country is not UK, Isle of Man, Guernsey or Jersey and user has digital subscription', () => {
|
|
1008
|
+
cy.GetTnlAcsSession('digitalDirectDebit')
|
|
1009
1009
|
cy.mockConsentAndVisit('/account')
|
|
1010
1010
|
|
|
1011
1011
|
cy.get('a[href="/account/edit/address"]').click()
|
|
1012
1012
|
|
|
1013
|
-
cy.get('input[name="line1"]').clear().type('
|
|
1014
|
-
cy.get('input[name="line2"]').clear().type('
|
|
1015
|
-
cy.get('input[name="city"]').clear().type('
|
|
1016
|
-
cy.get('input[name="postcode"]').clear().type('
|
|
1013
|
+
cy.get('input[name="line1"]').clear().type('620 Atlantic Ave')
|
|
1014
|
+
cy.get('input[name="line2"]').clear().type('Brooklyn')
|
|
1015
|
+
cy.get('input[name="city"]').clear().type('New York')
|
|
1016
|
+
cy.get('input[name="postcode"]').clear().type('11217')
|
|
1017
|
+
|
|
1018
|
+
cy.get('[data-testid="select-country"]').click()
|
|
1019
|
+
cy.get('[data-testid="United Kingdom"]').should('be.visible')
|
|
1020
|
+
|
|
1021
|
+
cy.get('[data-testid="United States of America"]').click()
|
|
1017
1022
|
|
|
1018
1023
|
cy.contains('Save').click()
|
|
1019
1024
|
|
|
@@ -1037,20 +1042,16 @@ describe('Personal detail edit pages', () => {
|
|
|
1037
1042
|
cy.url().should('eq', 'http://localhost:3000/account')
|
|
1038
1043
|
})
|
|
1039
1044
|
|
|
1040
|
-
it('Should not show modal when selected country is
|
|
1045
|
+
it('Should not show modal when selected country is UK, postcode is outside delivery area and user has digital subscription', () => {
|
|
1046
|
+
cy.GetTnlAcsSession('digitalDirectDebit')
|
|
1041
1047
|
cy.mockConsentAndVisit('/account')
|
|
1042
1048
|
|
|
1043
1049
|
cy.get('a[href="/account/edit/address"]').click()
|
|
1044
1050
|
|
|
1045
|
-
cy.get('input[name="line1"]').clear().type('
|
|
1046
|
-
cy.get('input[name="line2"]').clear().type('
|
|
1047
|
-
cy.get('input[name="city"]').clear().type('
|
|
1048
|
-
cy.get('input[name="postcode"]').clear().type('
|
|
1049
|
-
|
|
1050
|
-
cy.get('[data-testid="select-country"]').click()
|
|
1051
|
-
cy.get('[data-testid="United Kingdom"]').should('be.visible')
|
|
1052
|
-
|
|
1053
|
-
cy.get('[data-testid="United States of America"]').click()
|
|
1051
|
+
cy.get('input[name="line1"]').clear().type('News UK')
|
|
1052
|
+
cy.get('input[name="line2"]').clear().type('1 London Bridge Street')
|
|
1053
|
+
cy.get('input[name="city"]').clear().type('London')
|
|
1054
|
+
cy.get('input[name="postcode"]').clear().type('SE1')
|
|
1054
1055
|
|
|
1055
1056
|
cy.contains('Save').click()
|
|
1056
1057
|
|
package/cypress/support/users.js
CHANGED
|
@@ -20,14 +20,19 @@ export const userMap = {
|
|
|
20
20
|
password: 'testing123',
|
|
21
21
|
},
|
|
22
22
|
tnl: {
|
|
23
|
-
username: 'cmp1aug2022printstag@yopmail.com',
|
|
23
|
+
username: 'cmp1aug2022printstag@yopmail.com', //Print user
|
|
24
24
|
password: 'Password123',
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
digitalCard: {
|
|
27
27
|
//dtc=false
|
|
28
28
|
username: 'cmp-digi-card-20-09-22@yopmail.com',
|
|
29
29
|
password: 'Password123',
|
|
30
30
|
},
|
|
31
|
+
digitalDirectDebit: {
|
|
32
|
+
//dtc=false
|
|
33
|
+
username: 'cmp-digi-direct-20-09-22@yopmail.com',
|
|
34
|
+
password: 'Password123',
|
|
35
|
+
},
|
|
31
36
|
print: {
|
|
32
37
|
//dtc=true
|
|
33
38
|
username: 'cmp-dtc-card-20-09-22@yopmail.com',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.21.0-alpha.0",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@newskit-render/checkout": "^3.9.1",
|
|
48
48
|
"@newskit-render/feature-flags": "^1.7.0",
|
|
49
49
|
"@newskit-render/feed": "^1.8.4",
|
|
50
|
-
"@newskit-render/my-account": "^7.
|
|
50
|
+
"@newskit-render/my-account": "^7.21.0-alpha.0",
|
|
51
51
|
"@newskit-render/shared-components": "^4.10.1",
|
|
52
52
|
"@newskit-render/standalone-components": "^3.19.1",
|
|
53
53
|
"@newskit-render/validation": "^1.13.0",
|