@newskit-render/core 2.33.0-alpha.0 → 2.34.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/cypress/e2e/account/account-page.spec.js +28 -21
- package/package.json +1 -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
|
+
# [2.33.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@2.33.0-alpha.0...@newskit-render/core@2.33.0) (2022-12-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.32.5](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@2.32.5-alpha.0...@newskit-render/core@2.32.5) (2022-12-15)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @newskit-render/core
|
|
@@ -160,31 +160,38 @@ describe('My account personal details', () => {
|
|
|
160
160
|
})
|
|
161
161
|
})
|
|
162
162
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
// .click({ force: true })
|
|
163
|
+
it('Should go to edit page and change email', () => {
|
|
164
|
+
const currentEmail = 'render.e2e.default@yopmail.com'
|
|
165
|
+
const newEmail = 'render.e2e.default2@yopmail.com'
|
|
167
166
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
// cy.get('[name="email"]').clear().type(Cypress.env('newEmail'))
|
|
167
|
+
cy.get('a[href="/account/edit/email"]')
|
|
168
|
+
.should('be.visible')
|
|
169
|
+
.click({ force: true })
|
|
172
170
|
|
|
173
|
-
|
|
171
|
+
cy.contains(currentEmail)
|
|
172
|
+
cy.get('[name="email"]').clear().type(newEmail)
|
|
174
173
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
174
|
+
cy.get('[data-testid="primary-button"]').scrollIntoView().click()
|
|
175
|
+
cy.contains(
|
|
176
|
+
'[data-testid="toast-container"]',
|
|
177
|
+
'Your email address was successfully updated'
|
|
178
|
+
)
|
|
180
179
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
180
|
+
// Redirects to Personal details page
|
|
181
|
+
cy.contains(newEmail).should('have.length', 1)
|
|
182
|
+
cy.get('a[href="/account/edit/email"]')
|
|
183
|
+
.should('be.visible')
|
|
184
|
+
.click({ force: true })
|
|
185
|
+
|
|
186
|
+
// Check the message for verification link
|
|
187
|
+
cy.contains(
|
|
188
|
+
`Email sent to ${newEmail} with a verification link. If you haven't received it yet, check again later or contact customer services on xxxx-xxx-xxxx`
|
|
189
|
+
)
|
|
190
|
+
|
|
191
|
+
// Change email back to the previous email
|
|
192
|
+
cy.get('[name="email"]').clear().type(currentEmail)
|
|
193
|
+
cy.get('[data-testid="primary-button"]').scrollIntoView().click()
|
|
194
|
+
})
|
|
188
195
|
|
|
189
196
|
it('Should go to edit page and change password', () => {
|
|
190
197
|
cy.get('a[href="/account/edit/password"]')
|