@newskit-render/core 2.33.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 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
- // it('Should go to edit page and change email', () => {
164
- // cy.get('a[href="/account/edit/email"]')
165
- // .should('be.visible')
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
- // // Locally you need to add a "MAIN_USER_EMAIL" to cypress.env.json
169
- // // "MAIN_USER_EMAIL" should be the email of the user you use for testing
170
- // cy.contains(Cypress.env('MAIN_USER_EMAIL'))
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
- // cy.get('[data-testid="primary-button"]').scrollIntoView().click()
171
+ cy.contains(currentEmail)
172
+ cy.get('[name="email"]').clear().type(newEmail)
174
173
 
175
- // // Redirects to Personal details page
176
- // cy.contains(Cypress.env('newEmail')).should('have.length', 1)
177
- // cy.get('a[href="/account/edit/email"]')
178
- // .should('be.visible')
179
- // .click({ force: true })
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
- // // Check the message for verification link
182
- // cy.contains(
183
- // `Email sent to ${Cypress.env(
184
- // 'newEmail'
185
- // )} with a verification link. Please click on the link to verify your email address and enjoy full access to our content.`
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"]')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/core",
3
- "version": "2.33.0",
3
+ "version": "2.34.0-alpha.0",
4
4
  "description": "Newskit Render - Core package",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",