@newskit-render/core 4.8.4 → 4.9.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 +8 -0
- package/context/app-context/holidayStopListContextOverrides.ts +18 -0
- package/cypress/e2e/account/account-subscription.cy.js +13 -0
- package/package.json +2 -2
- package/pages/account/holiday-stop/previous-holiday-stops.tsx +6 -1
- package/pages/account/holiday-stop/upcoming-holiday-stops.tsx +6 -1
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.8.4](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.8.4-alpha.0...@newskit-render/core@4.8.4) (2023-06-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [4.8.3](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.8.3-alpha.0...@newskit-render/core@4.8.3) (2023-06-06)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @newskit-render/core
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
holidayStopContext,
|
|
3
|
+
holidayStopListContext,
|
|
4
|
+
} from '@newskit-render/my-account'
|
|
5
|
+
|
|
6
|
+
const HOLIDAY_STOP_BASE_URL = '/account/holiday-stop'
|
|
7
|
+
|
|
8
|
+
export const holidayStopListContextOverrides = {
|
|
9
|
+
...holidayStopContext,
|
|
10
|
+
...holidayStopListContext,
|
|
11
|
+
header: {
|
|
12
|
+
...holidayStopContext.header,
|
|
13
|
+
backButton: {
|
|
14
|
+
...holidayStopContext.header.backButton,
|
|
15
|
+
href: HOLIDAY_STOP_BASE_URL,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
}
|
|
@@ -54,6 +54,19 @@ describe('Account Subscription & Cancellation', () => {
|
|
|
54
54
|
.contains('View subscription options')
|
|
55
55
|
})
|
|
56
56
|
|
|
57
|
+
it('Should show free subscription view', () => {
|
|
58
|
+
cy.GetAcsSession('withSub')
|
|
59
|
+
cy.mockConsent()
|
|
60
|
+
cy.visitAndOverrideNextData(
|
|
61
|
+
'/account/subscription-and-billing',
|
|
62
|
+
'props.pageProps.user.subscriptions[0].billingDetails.paymentMethod.type',
|
|
63
|
+
null
|
|
64
|
+
)
|
|
65
|
+
cy.contains(
|
|
66
|
+
'There are no payment details associated with this type of account'
|
|
67
|
+
)
|
|
68
|
+
})
|
|
69
|
+
|
|
57
70
|
it('should got through cancellation workflow', () => {
|
|
58
71
|
cy.GetAcsSession('withSub')
|
|
59
72
|
cy.mockConsentAndVisit('/account/subscription-and-billing')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0-alpha.0",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@newskit-render/checkout": "^3.3.5",
|
|
45
45
|
"@newskit-render/feature-flags": "^1.4.11",
|
|
46
46
|
"@newskit-render/feed": "^1.5.0",
|
|
47
|
-
"@newskit-render/my-account": "^6.
|
|
47
|
+
"@newskit-render/my-account": "^6.12.0-alpha.0",
|
|
48
48
|
"@newskit-render/shared-components": "^3.13.1",
|
|
49
49
|
"@newskit-render/standalone-components": "^3.10.3",
|
|
50
50
|
"@newskit-render/validation": "^1.8.1",
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { getProviderProps, HolidayStopList } from '@newskit-render/my-account'
|
|
3
3
|
import newrelic from 'newrelic'
|
|
4
|
+
import { holidayStopListContextOverrides } from '../../../context/app-context/holidayStopListContextOverrides'
|
|
4
5
|
|
|
5
6
|
const AccountPreviousHolidayStops = (props) => (
|
|
6
|
-
<HolidayStopList
|
|
7
|
+
<HolidayStopList
|
|
8
|
+
{...props}
|
|
9
|
+
holidayStopType="previous"
|
|
10
|
+
context={holidayStopListContextOverrides}
|
|
11
|
+
/>
|
|
7
12
|
)
|
|
8
13
|
|
|
9
14
|
export default AccountPreviousHolidayStops
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { getProviderProps, HolidayStopList } from '@newskit-render/my-account'
|
|
3
3
|
import newrelic from 'newrelic'
|
|
4
|
+
import { holidayStopListContextOverrides } from '../../../context/app-context/holidayStopListContextOverrides'
|
|
4
5
|
|
|
5
6
|
const AccountUpcomingHolidayStops = (props) => (
|
|
6
|
-
<HolidayStopList
|
|
7
|
+
<HolidayStopList
|
|
8
|
+
{...props}
|
|
9
|
+
holidayStopType="upcoming"
|
|
10
|
+
context={holidayStopListContextOverrides}
|
|
11
|
+
/>
|
|
7
12
|
)
|
|
8
13
|
|
|
9
14
|
export default AccountUpcomingHolidayStops
|