@newskit-render/core 0.0.0-a13074568 → 0.0.0-ae9ce1f41
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 +40 -0
- package/cypress/e2e/account/newsletters-page.cy.js +1 -4
- package/cypress/e2e/account/subscription-and-billing.cy.js +6 -11
- package/package.json +11 -11
- package/pages/account/family/index.tsx +5 -1
- package/pages/account/user-hub/index.tsx +1 -1
- package/temp/_document.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,46 @@
|
|
|
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.38.2](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.38.2-alpha.0...@newskit-render/core@4.38.2) (2024-11-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [4.38.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.38.1-alpha.0...@newskit-render/core@4.38.1) (2024-11-01)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [4.38.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.38.0-alpha.0...@newskit-render/core@4.38.0) (2024-11-01)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [4.37.10](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.10-alpha.0...@newskit-render/core@4.37.10) (2024-10-29)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [4.37.9](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.9-alpha.0...@newskit-render/core@4.37.9) (2024-10-28)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
6
46
|
## [4.37.8](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.8-alpha.0...@newskit-render/core@4.37.8) (2024-10-24)
|
|
7
47
|
|
|
8
48
|
**Note:** Version bump only for package @newskit-render/core
|
|
@@ -15,10 +15,7 @@ describe('Newsletters page', () => {
|
|
|
15
15
|
cy.contains(
|
|
16
16
|
'Exclusive content and a curated selection of our top stories straight to your inbox.'
|
|
17
17
|
)
|
|
18
|
-
cy.get('[data-testid="newsletters-grid"] > div
|
|
19
|
-
'have.length',
|
|
20
|
-
20
|
|
21
|
-
)
|
|
18
|
+
cy.get('[data-testid="newsletters-grid"] > div').should('have.length', 20)
|
|
22
19
|
})
|
|
23
20
|
|
|
24
21
|
// Commented out because Optimizely feature flag with tm-my-account key is causing it to fail in this repo. Test should be re-enabled once feature flag is removed.
|
|
@@ -138,7 +138,8 @@ describe('Subscription and billing details for Digital user', () => {
|
|
|
138
138
|
cy.contains('expiry date 02/27')
|
|
139
139
|
})
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
// Skipped due to graphql changes. To be fixed with TMR-1959
|
|
142
|
+
it.skip('Should display Invoice history section', () => {
|
|
142
143
|
cy.contains('[data-testid="ContentListIntroduction"]', 'Invoice history')
|
|
143
144
|
cy.contains('Digital pack')
|
|
144
145
|
cy.contains('20 Sept 2022')
|
|
@@ -226,7 +227,8 @@ describe('Subscription and billing details for Print user', () => {
|
|
|
226
227
|
)
|
|
227
228
|
})
|
|
228
229
|
|
|
229
|
-
|
|
230
|
+
// Skipped due to graphql changes. To be fixed with TMR-1959
|
|
231
|
+
it.skip('Should display Invoice history section', () => {
|
|
230
232
|
cy.contains('[data-testid="ContentListIntroduction"]', 'Invoice history')
|
|
231
233
|
cy.contains('Print pack')
|
|
232
234
|
cy.contains('24 Apr 2023')
|
|
@@ -278,6 +280,8 @@ describe('Subscription and billing details for Digi-Print user', () => {
|
|
|
278
280
|
//...rest is same as Print user
|
|
279
281
|
})
|
|
280
282
|
|
|
283
|
+
// This test is going to fail on 13.11.2024 due to graphql changes.
|
|
284
|
+
// To be fixed with TMR-1959
|
|
281
285
|
it('Should display Invoice history section', () => {
|
|
282
286
|
cy.contains('[data-testid="ContentListIntroduction"]', 'Invoice history')
|
|
283
287
|
cy.contains('Digi-Print pack')
|
|
@@ -302,15 +306,6 @@ describe('Subscription and billing details for Paypal user', () => {
|
|
|
302
306
|
cy.get('[data-testid="paypal-icon"]').should('exist')
|
|
303
307
|
cy.contains('cmp.paypal.user.verified.test@news.co.uk')
|
|
304
308
|
})
|
|
305
|
-
|
|
306
|
-
it('Should show inline banner for Paypal subscription', () => {
|
|
307
|
-
cy.get('a[href="/account/payment"]').should('be.visible').click()
|
|
308
|
-
cy.contains(
|
|
309
|
-
'[data-testid="Zuora-inline"]',
|
|
310
|
-
'To update your Paypal credentials, please speak to one of our advisors on xxxx-xxx-xxxx or add a new payment method via credit/debit card using the form below.',
|
|
311
|
-
{ timeout: 15000 }
|
|
312
|
-
)
|
|
313
|
-
})
|
|
314
309
|
})
|
|
315
310
|
|
|
316
311
|
describe('Subscription and billing edit pages', () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-ae9ce1f41",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"@emotion/styled": "11.9.3",
|
|
43
43
|
"@newrelic/next": "0.5.2",
|
|
44
44
|
"@newrelic/winston-enricher": "4.0.1",
|
|
45
|
-
"@newskit-render/api": "^1.14.
|
|
46
|
-
"@newskit-render/auth": "^1.8.
|
|
47
|
-
"@newskit-render/checkout": "^3.10.
|
|
48
|
-
"@newskit-render/feature-flags": "^1.
|
|
49
|
-
"@newskit-render/feed": "^1.8.
|
|
50
|
-
"@newskit-render/my-account": "^7.
|
|
51
|
-
"@newskit-render/shared-components": "^4.
|
|
52
|
-
"@newskit-render/standalone-components": "^3.23.
|
|
53
|
-
"@newskit-render/validation": "^1.18.
|
|
45
|
+
"@newskit-render/api": "^1.14.1",
|
|
46
|
+
"@newskit-render/auth": "^1.8.2",
|
|
47
|
+
"@newskit-render/checkout": "^3.10.21",
|
|
48
|
+
"@newskit-render/feature-flags": "^1.11.1",
|
|
49
|
+
"@newskit-render/feed": "^1.8.14",
|
|
50
|
+
"@newskit-render/my-account": "^7.82.1",
|
|
51
|
+
"@newskit-render/shared-components": "^4.35.1",
|
|
52
|
+
"@newskit-render/standalone-components": "^3.23.4",
|
|
53
|
+
"@newskit-render/validation": "^1.18.1",
|
|
54
54
|
"cross-fetch": "3.1.5",
|
|
55
55
|
"graphql": "16.6.0",
|
|
56
56
|
"lodash.get": "4.4.2",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"prettier": "2.8.3",
|
|
105
105
|
"prettier-eslint": "15.0.1",
|
|
106
106
|
"prettier-eslint-cli": "7.1.0",
|
|
107
|
-
"typescript": "
|
|
107
|
+
"typescript": "5.6.3",
|
|
108
108
|
"wait-on": "7.0.1"
|
|
109
109
|
},
|
|
110
110
|
"precommit": [
|
|
@@ -12,11 +12,15 @@ export const getServerSideProps = async (context) => {
|
|
|
12
12
|
replaceConsoleAndSetTransactionName('Account: Family')
|
|
13
13
|
/* start cra-effected */
|
|
14
14
|
const featureFlags = await getAllFeatureFlags()
|
|
15
|
+
|
|
16
|
+
const provider = featureFlags?.enable_invite_family_v2_query
|
|
17
|
+
? 'GroupAccountsV2'
|
|
18
|
+
: 'GroupAccounts'
|
|
15
19
|
/* end cra-effected */
|
|
16
20
|
return getProviderPropsUtil(
|
|
17
21
|
{
|
|
18
22
|
...context,
|
|
19
|
-
provider
|
|
23
|
+
provider,
|
|
20
24
|
},
|
|
21
25
|
{ featureFlags } /* cra-effected */
|
|
22
26
|
)
|
|
@@ -14,7 +14,7 @@ export const getServerSideProps = async (context) => {
|
|
|
14
14
|
const featureFlags = await getAllFeatureFlags()
|
|
15
15
|
/* end cra-effected */
|
|
16
16
|
return getProviderPropsUtil(
|
|
17
|
-
{ ...context, provider: '
|
|
17
|
+
{ ...context, provider: 'PersonalDetails' },
|
|
18
18
|
{ featureFlags } /* cra-effected */
|
|
19
19
|
)
|
|
20
20
|
}
|
package/temp/_document.tsx
CHANGED