@newskit-render/core 2.21.1 → 2.21.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
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.21.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@2.21.1-alpha.0...@newskit-render/core@2.21.1) (2022-11-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [2.21.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@2.21.0-alpha.0...@newskit-render/core@2.21.0) (2022-11-16)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @newskit-render/core
|
|
@@ -203,23 +203,18 @@ describe('Account Subscription & Cancellation', () => {
|
|
|
203
203
|
})
|
|
204
204
|
|
|
205
205
|
it('should show your deliveries section if the subscription has print', () => {
|
|
206
|
-
cy.
|
|
206
|
+
cy.GetTnlAcsSession('tnl')
|
|
207
207
|
cy.mockConsent()
|
|
208
|
-
|
|
209
|
-
cy.visitAndOverrideNextData(
|
|
210
|
-
'/account/subscription-and-billing',
|
|
211
|
-
'props.pageProps.user.subscriptions',
|
|
212
|
-
printSubscriptionPageProps.props.pageProps.user.subscriptions
|
|
213
|
-
)
|
|
208
|
+
cy.mockConsentAndVisit('/account/subscription-and-billing')
|
|
214
209
|
cy.contains('Your deliveries')
|
|
215
210
|
})
|
|
216
211
|
|
|
217
212
|
it('should be able to add your delivery instructions', () => {
|
|
218
|
-
cy.
|
|
213
|
+
cy.GetTnlAcsSession('tnl')
|
|
219
214
|
cy.mockConsentAndVisit('/account/edit/delivery-instructions')
|
|
220
215
|
cy.contains('h1', 'Delivery instructions')
|
|
221
216
|
cy.contains('Where should we leave your Newspaper?')
|
|
222
|
-
cy.get('[type="radio"]').
|
|
217
|
+
cy.get('[type="radio"]').should('be.checked')
|
|
223
218
|
// mock sussesful api call
|
|
224
219
|
cy.intercept('POST', '/api/account/mutate', {
|
|
225
220
|
statusCode: 200,
|
|
@@ -240,7 +235,7 @@ describe('Account Subscription & Cancellation', () => {
|
|
|
240
235
|
})
|
|
241
236
|
|
|
242
237
|
it('should be able to add your custom delivery instructions', () => {
|
|
243
|
-
cy.
|
|
238
|
+
cy.GetTnlAcsSession('tnl')
|
|
244
239
|
cy.mockConsentAndVisit('/account/edit/delivery-instructions')
|
|
245
240
|
cy.contains('h1', 'Delivery instructions')
|
|
246
241
|
cy.contains('Where should we leave your Newspaper?')
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import * as userHolidayStops from '../../fixtures/holiday-stops.json'
|
|
2
|
-
|
|
3
1
|
describe('Book a holiday stop', () => {
|
|
4
2
|
beforeEach(() => {
|
|
5
|
-
cy.
|
|
3
|
+
cy.GetTnlAcsSession('tnl')
|
|
6
4
|
cy.mockConsentAndVisit('/account/holiday-stop')
|
|
7
5
|
})
|
|
8
6
|
|
|
@@ -11,33 +9,21 @@ describe('Book a holiday stop', () => {
|
|
|
11
9
|
cy.contains('[data-testid="introduction-title"]', 'Book a holiday stop')
|
|
12
10
|
cy.contains('Add a Holiday Stop')
|
|
13
11
|
cy.get('a[href="/account/holiday-stop/upcoming-holiday-stops"]').should(
|
|
14
|
-
'
|
|
15
|
-
)
|
|
16
|
-
cy.get('a[href="/account/holiday-stop/previous-holiday-stops"]').should(
|
|
17
|
-
'not.exist'
|
|
12
|
+
'exist'
|
|
18
13
|
)
|
|
19
14
|
})
|
|
20
15
|
})
|
|
21
16
|
|
|
22
17
|
describe('Upcoming holiday stops', () => {
|
|
23
18
|
beforeEach(() => {
|
|
24
|
-
cy.
|
|
19
|
+
cy.GetTnlAcsSession('tnl')
|
|
20
|
+
cy.mockConsentAndVisit('/account/holiday-stop')
|
|
25
21
|
})
|
|
26
22
|
|
|
27
23
|
it('should navigate to the Upcoming holiday stops and display the list of upcoming holiday stops', () => {
|
|
28
|
-
cy.visitAndOverrideNextData(
|
|
29
|
-
'/account/holiday-stop',
|
|
30
|
-
'props.pageProps.user.holidayStops',
|
|
31
|
-
userHolidayStops.holidayStops
|
|
32
|
-
)
|
|
33
24
|
cy.get('a[href="/account/holiday-stop/upcoming-holiday-stops"]').should(
|
|
34
25
|
'exist'
|
|
35
26
|
)
|
|
36
|
-
cy.visitAndOverrideNextData(
|
|
37
|
-
'/account/holiday-stop/upcoming-holiday-stops',
|
|
38
|
-
'props.pageProps.user.holidayStops',
|
|
39
|
-
userHolidayStops.holidayStops
|
|
40
|
-
)
|
|
41
27
|
cy.get('[data-testid="content-list"] > ul > li').should(
|
|
42
28
|
'have.length.of.at.least',
|
|
43
29
|
6
|
|
@@ -47,12 +33,8 @@ describe('Upcoming holiday stops', () => {
|
|
|
47
33
|
|
|
48
34
|
describe('Cancel holiday stop', () => {
|
|
49
35
|
beforeEach(() => {
|
|
50
|
-
cy.
|
|
51
|
-
cy.
|
|
52
|
-
'/account/holiday-stop',
|
|
53
|
-
'props.pageProps.user.holidayStops',
|
|
54
|
-
userHolidayStops.holidayStops
|
|
55
|
-
)
|
|
36
|
+
cy.GetTnlAcsSession('tnl')
|
|
37
|
+
cy.mockConsentAndVisit('/account/holiday-stop')
|
|
56
38
|
})
|
|
57
39
|
|
|
58
40
|
it('should show popup and cancel holiday stop', () => {
|
|
@@ -74,7 +56,7 @@ describe('Cancel holiday stop', () => {
|
|
|
74
56
|
|
|
75
57
|
describe('Add a Holiday Stop', () => {
|
|
76
58
|
beforeEach(() => {
|
|
77
|
-
cy.
|
|
59
|
+
cy.GetTnlAcsSession('tnl')
|
|
78
60
|
cy.mockConsentAndVisit('/account/add/holiday-stop')
|
|
79
61
|
})
|
|
80
62
|
it('should display add holiday stop page', () => {
|
|
@@ -121,7 +103,7 @@ describe('Add a Holiday Stop', () => {
|
|
|
121
103
|
|
|
122
104
|
describe('Edit Holiday Stops', () => {
|
|
123
105
|
beforeEach(() => {
|
|
124
|
-
cy.
|
|
106
|
+
cy.GetTnlAcsSession('tnl')
|
|
125
107
|
cy.visitAndOverrideNextData(
|
|
126
108
|
'/account/edit/holiday-stop?id=a2U7Y000001r8aSUAQ',
|
|
127
109
|
'props.pageProps.data.fields',
|
|
@@ -9,7 +9,6 @@ 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
12
|
cy.eyesOpen()
|
|
14
13
|
cy.eyesCheckWindow('Subscription and Billing page for print subscriptions')
|
|
15
14
|
cy.eyesClose()
|
|
@@ -3,7 +3,7 @@ version: 2.1
|
|
|
3
3
|
orbs:
|
|
4
4
|
slack: circleci/slack@3.4.2
|
|
5
5
|
browser-tools: circleci/browser-tools@1.3.0
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
executors:
|
|
8
8
|
helm:
|
|
9
9
|
docker:
|
|
@@ -240,7 +240,6 @@ commands:
|
|
|
240
240
|
echo 'export HELM_OPT_SET="$HELM_OPT_SET --set envs.TEALIUM_ENV=${TEALIUM_ENV}"' >> $BASH_ENV
|
|
241
241
|
echo 'export HELM_OPT_SET="$HELM_OPT_SET --set secret.items.NEW_RELIC_LICENSE_KEY=${NEW_RELIC_LICENSE_KEY}"' >> $BASH_ENV
|
|
242
242
|
echo 'export HELM_OPT_SET="$HELM_OPT_SET --set secret.items.MAIN_GRAPHQL_URL=${MAIN_GRAPHQL_URL}"' >> $BASH_ENV
|
|
243
|
-
echo 'export HELM_OPT_SET="$HELM_OPT_SET --set secret.items.MAIN_COOKIE_NAME=${MAIN_COOKIE_NAME}"' >> $BASH_ENV
|
|
244
243
|
echo 'export HELM_OPT_SET="$HELM_OPT_SET --set secret.items.MAIN_AUDIENCE=${MAIN_AUDIENCE}"' >> $BASH_ENV
|
|
245
244
|
echo 'export HELM_OPT_SET="$HELM_OPT_SET --set secret.items.MAIN_OAUTH_TOKEN=${MAIN_OAUTH_TOKEN}"' >> $BASH_ENV
|
|
246
245
|
echo 'export HELM_OPT_SET="$HELM_OPT_SET --set secret.items.MAIN_CLIENT_ID=${MAIN_CLIENT_ID}"' >> $BASH_ENV
|
|
@@ -386,7 +385,7 @@ jobs:
|
|
|
386
385
|
keys:
|
|
387
386
|
- <% PACKAGE_MANAGER >-build-{{ .Environment.BUILD_CACHE_VERSION }}-{{ checksum "<% PACKAGE_MANAGER_LOCK_FILE >" }}
|
|
388
387
|
- run:
|
|
389
|
-
name:
|
|
388
|
+
name: 'Run lint'
|
|
390
389
|
command: <% PACKAGE_RUN > lint
|
|
391
390
|
|
|
392
391
|
test_unit:
|
|
@@ -773,7 +772,7 @@ only_on_pr_branch: &only_on_pr_branch
|
|
|
773
772
|
only_on_master_branch: &only_on_master_branch
|
|
774
773
|
filters:
|
|
775
774
|
branches:
|
|
776
|
-
only:
|
|
775
|
+
only:
|
|
777
776
|
- master
|
|
778
777
|
- main
|
|
779
778
|
|
|
@@ -844,7 +843,7 @@ workflows:
|
|
|
844
843
|
remove_pr:
|
|
845
844
|
when:
|
|
846
845
|
not:
|
|
847
|
-
equal: [
|
|
846
|
+
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
|
|
848
847
|
jobs:
|
|
849
848
|
- init_aws:
|
|
850
849
|
<<: *only_on_master_branch
|
|
@@ -862,7 +861,7 @@ workflows:
|
|
|
862
861
|
build_and_deploy:
|
|
863
862
|
when:
|
|
864
863
|
not:
|
|
865
|
-
equal: [
|
|
864
|
+
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
|
|
866
865
|
jobs:
|
|
867
866
|
- install_deps:
|
|
868
867
|
name: install_deps
|
|
@@ -1034,8 +1033,8 @@ workflows:
|
|
|
1034
1033
|
remove_old_environments:
|
|
1035
1034
|
when:
|
|
1036
1035
|
and:
|
|
1037
|
-
- equal: [
|
|
1038
|
-
- equal: [
|
|
1036
|
+
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
|
|
1037
|
+
- equal: ['remove_old_environments', << pipeline.schedule.name >>]
|
|
1039
1038
|
jobs:
|
|
1040
1039
|
- init_aws:
|
|
1041
1040
|
<<: *only_on_master_branch
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.2",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"@emotion-icons/material-outlined": "3.14.0",
|
|
39
39
|
"@emotion/react": "11.10.4",
|
|
40
40
|
"@emotion/styled": "11.10.4",
|
|
41
|
-
"@newskit-render/api": "^1.2.
|
|
41
|
+
"@newskit-render/api": "^1.2.2",
|
|
42
42
|
"@newskit-render/auth": "^1.1.1",
|
|
43
|
-
"@newskit-render/checkout": "^1.6.
|
|
43
|
+
"@newskit-render/checkout": "^1.6.3",
|
|
44
44
|
"@newskit-render/feature-flags": "^1.2.0",
|
|
45
|
-
"@newskit-render/feed": "^1.2.
|
|
46
|
-
"@newskit-render/my-account": "^3.18.
|
|
45
|
+
"@newskit-render/feed": "^1.2.1",
|
|
46
|
+
"@newskit-render/my-account": "^3.18.1",
|
|
47
47
|
"@newskit-render/shared-components": "^1.18.0",
|
|
48
|
-
"@newskit-render/standalone-components": "^1.10.
|
|
48
|
+
"@newskit-render/standalone-components": "^1.10.3",
|
|
49
49
|
"@newskit-render/validation": "^1.3.1",
|
|
50
50
|
"cross-fetch": "3.1.5",
|
|
51
51
|
"graphql": "15.6.0",
|