@newskit-render/core 4.61.2-c593b898d.0 → 4.61.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/e2e/account/banners.cy.js +3 -3
- package/cypress/e2e/account/cancellation.cy.js +1 -1
- package/cypress/e2e/account/personal-details.cy.js +1 -1
- package/cypress/e2e/account/subscription-and-billing.cy.js +13 -13
- package/cypress/support/users.js +20 -4
- package/package.json +3 -3
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.61.2](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.61.1...@newskit-render/core@4.61.2) (2026-03-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [4.61.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.61.0...@newskit-render/core@4.61.1) (2026-02-27)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -98,7 +98,7 @@ describe('Banners', () => {
|
|
|
98
98
|
})
|
|
99
99
|
|
|
100
100
|
it('Should show expired subscription view with terminated notice', () => {
|
|
101
|
-
cy.
|
|
101
|
+
cy.GetTnlAcsSession('expiredSubscription')
|
|
102
102
|
cy.mockConsent()
|
|
103
103
|
const date = new Date(Date.now() - 24 * 35 * 3600 * 1000)
|
|
104
104
|
cy.visit('/account/subscription-and-billing', {
|
|
@@ -143,7 +143,7 @@ describe('Banners', () => {
|
|
|
143
143
|
})
|
|
144
144
|
|
|
145
145
|
it('Should not show banner once it has been dismissed', () => {
|
|
146
|
-
cy.
|
|
146
|
+
cy.GetTnlAcsSession('digital')
|
|
147
147
|
cy.mockConsent()
|
|
148
148
|
const date = new Date(Date.now() + 20 * 30 * 3600 * 1000)
|
|
149
149
|
|
|
@@ -160,7 +160,7 @@ describe('Banners', () => {
|
|
|
160
160
|
})
|
|
161
161
|
|
|
162
162
|
it('Should not display banner if set date is passed current date', () => {
|
|
163
|
-
cy.
|
|
163
|
+
cy.GetTnlAcsSession('digital')
|
|
164
164
|
cy.mockConsent()
|
|
165
165
|
const date = new Date(Date.now() - 24 * 35 * 3600 * 1000)
|
|
166
166
|
cy.visitAndOverrideNextData(
|
|
@@ -5,7 +5,7 @@ import { serviceCancellationDate } from '../../fixtures/paymentFailure'
|
|
|
5
5
|
describe('Cancellation page', () => {
|
|
6
6
|
describe('Find a better name', () => {
|
|
7
7
|
beforeEach(() => {
|
|
8
|
-
cy.GetTnlAcsSession('
|
|
8
|
+
cy.GetTnlAcsSession('digital')
|
|
9
9
|
cy.mockConsentAndVisit('/account/cancellation')
|
|
10
10
|
})
|
|
11
11
|
|
|
@@ -893,7 +893,7 @@ describe('Personal detail edit pages', () => {
|
|
|
893
893
|
})
|
|
894
894
|
|
|
895
895
|
it('Should show modal when selected country is UK but postcode is outside delivery area and user has digi-print subscription', () => {
|
|
896
|
-
cy.GetTnlAcsSession('
|
|
896
|
+
cy.GetTnlAcsSession('digiPrintNonVoucher')
|
|
897
897
|
cy.mockConsentAndVisit('/account')
|
|
898
898
|
|
|
899
899
|
cy.get('a[href="/account/edit/address"]').click()
|
|
@@ -47,7 +47,7 @@ describe('Subscription and billing details for user with expired subscription',
|
|
|
47
47
|
it('Should show expired subscription view', () => {
|
|
48
48
|
const date = new Date(Date.now() - 24 * 35 * 3600 * 1000)
|
|
49
49
|
|
|
50
|
-
cy.
|
|
50
|
+
cy.GetTnlAcsSession('expiredSubscription')
|
|
51
51
|
cy.mockConsent()
|
|
52
52
|
cy.visitAndOverrideNextData(
|
|
53
53
|
'/account/subscription-and-billing',
|
|
@@ -73,7 +73,7 @@ describe('Subscription and billing details for user with expired subscription',
|
|
|
73
73
|
|
|
74
74
|
describe('Subscription and billing details for user with VIP/free subscription', () => {
|
|
75
75
|
it('Should show no payment details view', () => {
|
|
76
|
-
cy.
|
|
76
|
+
cy.GetTnlAcsSession('vipFree')
|
|
77
77
|
cy.mockConsent()
|
|
78
78
|
cy.visitAndOverrideNextData(
|
|
79
79
|
'/account/subscription-and-billing',
|
|
@@ -88,7 +88,7 @@ describe('Subscription and billing details for user with VIP/free subscription',
|
|
|
88
88
|
|
|
89
89
|
describe('Subscription and billing details for Digital user', () => {
|
|
90
90
|
beforeEach(() => {
|
|
91
|
-
cy.GetTnlAcsSession('
|
|
91
|
+
cy.GetTnlAcsSession('digital')
|
|
92
92
|
cy.mockConsentAndVisit('/account/subscription-and-billing')
|
|
93
93
|
})
|
|
94
94
|
|
|
@@ -107,14 +107,14 @@ describe('Subscription and billing details for Digital user', () => {
|
|
|
107
107
|
cy.contains('Type')
|
|
108
108
|
cy.contains('Digital')
|
|
109
109
|
cy.contains('Price')
|
|
110
|
-
cy.contains('£
|
|
110
|
+
cy.contains('£15')
|
|
111
111
|
cy.contains('Customer number')
|
|
112
|
-
cy.contains('
|
|
112
|
+
cy.contains('STG-IVRU8DF4S')
|
|
113
113
|
cy.contains(
|
|
114
114
|
'Your customer number is your unique identifier and may be asked when contacting us'
|
|
115
115
|
)
|
|
116
116
|
cy.contains('Start date')
|
|
117
|
-
cy.contains('
|
|
117
|
+
cy.contains('07/10/2025')
|
|
118
118
|
cy.contains('Benefits')
|
|
119
119
|
cy.contains(
|
|
120
120
|
'Short description of subscription type, including product access'
|
|
@@ -134,16 +134,16 @@ describe('Subscription and billing details for Digital user', () => {
|
|
|
134
134
|
cy.contains('[data-testid="ContentListIntroduction"]', 'Billing details')
|
|
135
135
|
cy.contains('Payment method')
|
|
136
136
|
cy.get('[data-testid="visa-icon"]').should('exist')
|
|
137
|
-
cy.contains('************
|
|
138
|
-
cy.contains('expiry date
|
|
137
|
+
cy.contains('************1111')
|
|
138
|
+
cy.contains('expiry date 08/27')
|
|
139
139
|
})
|
|
140
140
|
|
|
141
141
|
// Section no longer displayed when Invoice history is empty due to graphql change
|
|
142
142
|
// Invoices are no longer fetched if older than 1 year
|
|
143
143
|
// This test would periodically fail as it depends on changing user data
|
|
144
|
-
it('Should
|
|
144
|
+
it('Should display Invoice history section', () => {
|
|
145
145
|
cy.get('[data-testid="ContentListIntroduction"]').should(
|
|
146
|
-
'
|
|
146
|
+
'contain',
|
|
147
147
|
'Invoice history'
|
|
148
148
|
)
|
|
149
149
|
})
|
|
@@ -242,7 +242,7 @@ describe('Subscription and billing details for Print user', () => {
|
|
|
242
242
|
'If your voucher booklet hasn’t arrived within three days of your booklet start date, or you have any issues regarding your vouchers, please contact us.'
|
|
243
243
|
)
|
|
244
244
|
cy.contains('Voucher booklet start date')
|
|
245
|
-
cy.contains('
|
|
245
|
+
cy.contains('08/03/26')
|
|
246
246
|
cy.contains(
|
|
247
247
|
'Your contact address will be used for any of your deliveries. This can be managed via Personal details'
|
|
248
248
|
)
|
|
@@ -251,7 +251,7 @@ describe('Subscription and billing details for Print user', () => {
|
|
|
251
251
|
|
|
252
252
|
describe('Subscription and billing details for Digi-Print user', () => {
|
|
253
253
|
beforeEach(() => {
|
|
254
|
-
cy.GetTnlAcsSession('
|
|
254
|
+
cy.GetTnlAcsSession('digiPrintNonVoucher')
|
|
255
255
|
cy.mockConsentAndVisit('/account/subscription-and-billing')
|
|
256
256
|
})
|
|
257
257
|
// Same as Print user
|
|
@@ -269,7 +269,7 @@ describe('Subscription and billing details for Digi-Print user', () => {
|
|
|
269
269
|
|
|
270
270
|
describe('Subscription and billing details for Paypal user', () => {
|
|
271
271
|
beforeEach(() => {
|
|
272
|
-
cy.
|
|
272
|
+
cy.GetTnlAcsSession('paypalSub')
|
|
273
273
|
cy.mockConsentAndVisit('/account/subscription-and-billing')
|
|
274
274
|
})
|
|
275
275
|
// Same as Digital user
|
package/cypress/support/users.js
CHANGED
|
@@ -12,13 +12,21 @@ export const userMap = {
|
|
|
12
12
|
username: 'tim.newsuk3@yopmail.com', // Sun
|
|
13
13
|
password: 'Ad45p0-swq151@',
|
|
14
14
|
},
|
|
15
|
+
expiredSubscription: {
|
|
16
|
+
username: 'e2e-render-expired@yopmail.com',
|
|
17
|
+
password: 'Password123'
|
|
18
|
+
},
|
|
15
19
|
withSub: {
|
|
16
20
|
username: 'render-e2e-subscription@yopmail.com', // Sun
|
|
17
21
|
password: 'Testing123$',
|
|
18
22
|
},
|
|
23
|
+
vipFree: {
|
|
24
|
+
username: 'e2e-render-vip-free@yopmail.com',
|
|
25
|
+
password: 'Password123Testing',
|
|
26
|
+
},
|
|
19
27
|
paypalSub: {
|
|
20
|
-
username: 'render-paypal-
|
|
21
|
-
password: '
|
|
28
|
+
username: 'e2e-render-paypal-digital@yopmail.com',
|
|
29
|
+
password: 'Password123Testing',
|
|
22
30
|
},
|
|
23
31
|
tnl: {
|
|
24
32
|
username: 'cmp1aug2022printstag@yopmail.com', //Print user
|
|
@@ -29,6 +37,10 @@ export const userMap = {
|
|
|
29
37
|
username: 'cmp-digi-card-20-09-22@yopmail.com',
|
|
30
38
|
password: 'Password123$',
|
|
31
39
|
},
|
|
40
|
+
digital: {
|
|
41
|
+
username: 'e2e-render-digital@yopmail.com',
|
|
42
|
+
password: 'Password123',
|
|
43
|
+
},
|
|
32
44
|
digitalDirectDebit: {
|
|
33
45
|
//dtc=false
|
|
34
46
|
username: 'cmp-digi-direct-20-09-22@yopmail.com',
|
|
@@ -41,8 +53,8 @@ export const userMap = {
|
|
|
41
53
|
},
|
|
42
54
|
printVouchers: {
|
|
43
55
|
//dtc=false
|
|
44
|
-
username: '
|
|
45
|
-
password: '
|
|
56
|
+
username: 'e2e-render-print-voucher@yopmail.com',
|
|
57
|
+
password: 'Password123Testing',
|
|
46
58
|
},
|
|
47
59
|
digiprint: {
|
|
48
60
|
//dtc=true
|
|
@@ -54,6 +66,10 @@ export const userMap = {
|
|
|
54
66
|
username: 'digi-print-card-15-11-22@yopmail.com',
|
|
55
67
|
password: 'Password123Testing123$',
|
|
56
68
|
},
|
|
69
|
+
digiPrintNonVoucher: {
|
|
70
|
+
username: 'e2e-render-digi-print-non-voucher@yopmail.com',
|
|
71
|
+
password: 'Password123Testing',
|
|
72
|
+
},
|
|
57
73
|
tnlNoSubscription: {
|
|
58
74
|
//registered user with no subscription, tests the number of newsletters displayed
|
|
59
75
|
username: 'tm-test+staging-registered-user@news.co.uk',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "4.61.2
|
|
3
|
+
"version": "4.61.2",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@newskit-render/checkout": "^3.13.22",
|
|
48
48
|
"@newskit-render/feature-flags": "^1.15.0",
|
|
49
49
|
"@newskit-render/feed": "^1.10.0",
|
|
50
|
-
"@newskit-render/my-account": "^7.174.
|
|
50
|
+
"@newskit-render/my-account": "^7.174.1",
|
|
51
51
|
"@newskit-render/shared-components": "^4.72.3",
|
|
52
52
|
"@newskit-render/standalone-components": "^3.28.9",
|
|
53
53
|
"@newskit-render/validation": "^1.24.0",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"@types/pino-std-serializers": "2.4.1",
|
|
124
124
|
"@types/pino-pretty": "4.7.5"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "bdbaf2b7b06c2187722181bae0f94f7d78b6fb3f"
|
|
127
127
|
}
|