@newskit-render/core 4.26.0-alpha.1 → 4.26.0-alpha.3
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.
|
@@ -474,7 +474,7 @@ describe('Personal detail edit pages', () => {
|
|
|
474
474
|
|
|
475
475
|
cy.contains(
|
|
476
476
|
'[data-testid="toast-container"]',
|
|
477
|
-
'Updating your mobile
|
|
477
|
+
'Updating your mobile number...'
|
|
478
478
|
)
|
|
479
479
|
|
|
480
480
|
// Redirects to Personal details page
|
|
@@ -484,7 +484,7 @@ describe('Personal detail edit pages', () => {
|
|
|
484
484
|
cy.contains('070 0012 3456').should('have.length', 1)
|
|
485
485
|
cy.contains(
|
|
486
486
|
'[data-testid="toast-container"]',
|
|
487
|
-
'Your mobile
|
|
487
|
+
'Your mobile number has been updated.'
|
|
488
488
|
)
|
|
489
489
|
})
|
|
490
490
|
it('Should show input validation error messages when user tries to add invalid mobile number', () => {
|
|
@@ -495,7 +495,7 @@ describe('Personal detail edit pages', () => {
|
|
|
495
495
|
|
|
496
496
|
cy.get('[name="mobile"]').clear()
|
|
497
497
|
cy.get('[data-testid="primary-button"]').click()
|
|
498
|
-
cy.contains('Please enter your mobile
|
|
498
|
+
cy.contains('Please enter your mobile number')
|
|
499
499
|
|
|
500
500
|
cy.get('[name="mobile"]').clear().type('stringdata?')
|
|
501
501
|
cy.get('[data-testid="primary-button"]').click()
|
|
@@ -511,7 +511,7 @@ describe('Personal detail edit pages', () => {
|
|
|
511
511
|
cy.get('[data-testid="primary-button"]').click()
|
|
512
512
|
cy.contains(
|
|
513
513
|
'[data-testid="toast-container"]',
|
|
514
|
-
'Updating your mobile
|
|
514
|
+
'Updating your mobile number...'
|
|
515
515
|
).should('not.exist')
|
|
516
516
|
})
|
|
517
517
|
it('Should show error toast when updating mobile number if internal server error occures', () => {
|
|
@@ -524,11 +524,11 @@ describe('Personal detail edit pages', () => {
|
|
|
524
524
|
|
|
525
525
|
cy.contains(
|
|
526
526
|
'[data-testid="toast-container"]',
|
|
527
|
-
'Updating your mobile
|
|
527
|
+
'Updating your mobile number...'
|
|
528
528
|
)
|
|
529
529
|
cy.contains(
|
|
530
530
|
'[data-testid="toast-container"]',
|
|
531
|
-
"Sorry, we're unable to save your mobile
|
|
531
|
+
"Sorry, we're unable to save your mobile number right now. Please try again or come back later."
|
|
532
532
|
)
|
|
533
533
|
})
|
|
534
534
|
})
|
|
@@ -565,7 +565,7 @@ describe('Personal detail edit pages', () => {
|
|
|
565
565
|
|
|
566
566
|
cy.contains(
|
|
567
567
|
'[data-testid="toast-container"]',
|
|
568
|
-
'Updating your landline
|
|
568
|
+
'Updating your landline number...'
|
|
569
569
|
)
|
|
570
570
|
|
|
571
571
|
// Redirects to Personal details page
|
|
@@ -575,7 +575,7 @@ describe('Personal detail edit pages', () => {
|
|
|
575
575
|
cy.contains('020 7782 6000').should('have.length', 1)
|
|
576
576
|
cy.contains(
|
|
577
577
|
'[data-testid="toast-container"]',
|
|
578
|
-
'Your landline
|
|
578
|
+
'Your landline number has been updated.'
|
|
579
579
|
)
|
|
580
580
|
})
|
|
581
581
|
it('Should show input validation error messages when user tries to add invalid landline number', () => {
|
|
@@ -586,7 +586,7 @@ describe('Personal detail edit pages', () => {
|
|
|
586
586
|
|
|
587
587
|
cy.get('[name="phoneNumber"]').clear()
|
|
588
588
|
cy.get('[data-testid="primary-button"]').click()
|
|
589
|
-
cy.contains('Please enter your landline
|
|
589
|
+
cy.contains('Please enter your landline number')
|
|
590
590
|
|
|
591
591
|
cy.get('[name="phoneNumber"]').clear().type('stringdata?')
|
|
592
592
|
cy.get('[data-testid="primary-button"]').click()
|
|
@@ -602,7 +602,7 @@ describe('Personal detail edit pages', () => {
|
|
|
602
602
|
cy.get('[data-testid="primary-button"]').click()
|
|
603
603
|
cy.contains(
|
|
604
604
|
'[data-testid="toast-container"]',
|
|
605
|
-
'Updating your landline
|
|
605
|
+
'Updating your landline number...'
|
|
606
606
|
).should('not.exist')
|
|
607
607
|
})
|
|
608
608
|
it('Should show error toast when updating landline number if internal server error occures', () => {
|
|
@@ -615,11 +615,11 @@ describe('Personal detail edit pages', () => {
|
|
|
615
615
|
|
|
616
616
|
cy.contains(
|
|
617
617
|
'[data-testid="toast-container"]',
|
|
618
|
-
'Updating your landline
|
|
618
|
+
'Updating your landline number...'
|
|
619
619
|
)
|
|
620
620
|
cy.contains(
|
|
621
621
|
'[data-testid="toast-container"]',
|
|
622
|
-
"Sorry, we're unable to save your landline
|
|
622
|
+
"Sorry, we're unable to save your landline number right now. Please try again or come back later."
|
|
623
623
|
)
|
|
624
624
|
})
|
|
625
625
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "4.26.0-alpha.
|
|
3
|
+
"version": "4.26.0-alpha.3",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"@newrelic/winston-enricher": "4.0.1",
|
|
45
45
|
"@newskit-render/api": "^1.11.0",
|
|
46
46
|
"@newskit-render/auth": "^1.8.0",
|
|
47
|
-
"@newskit-render/checkout": "^3.9.
|
|
47
|
+
"@newskit-render/checkout": "^3.9.25-alpha.0",
|
|
48
48
|
"@newskit-render/feature-flags": "^1.7.0",
|
|
49
49
|
"@newskit-render/feed": "^1.8.5",
|
|
50
|
-
"@newskit-render/my-account": "^7.47.0-alpha.
|
|
51
|
-
"@newskit-render/shared-components": "^4.23.
|
|
52
|
-
"@newskit-render/standalone-components": "^3.20.
|
|
53
|
-
"@newskit-render/validation": "^1.
|
|
50
|
+
"@newskit-render/my-account": "^7.47.0-alpha.2",
|
|
51
|
+
"@newskit-render/shared-components": "^4.23.4-alpha.0",
|
|
52
|
+
"@newskit-render/standalone-components": "^3.20.18-alpha.0",
|
|
53
|
+
"@newskit-render/validation": "^1.17.0-alpha.0",
|
|
54
54
|
"cross-fetch": "3.1.5",
|
|
55
55
|
"graphql": "16.6.0",
|
|
56
56
|
"lodash.get": "4.4.2",
|