@newskit-render/core 2.39.6-alpha.1 → 2.39.6-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.
@@ -33,16 +33,14 @@ const CollectionBlock: React.FC<CollectionBlockProps> = ({
33
33
  <>
34
34
  {index !== 0 && (
35
35
  <SectionContext.Consumer>
36
- {
37
- ({ isIndexPage }) =>
38
- !isIndexPage && (
39
- <SectionTitle
40
- title={collection.title}
41
- sectionURL={sectionURL}
42
- titleBarColour={titleBarColors[index]}
43
- />
44
- )
45
- /* eslint-disable-next-line */
36
+ {({ isIndexPage }) =>
37
+ !isIndexPage && (
38
+ <SectionTitle
39
+ title={collection.title}
40
+ sectionURL={sectionURL}
41
+ titleBarColour={titleBarColors[index]}
42
+ />
43
+ )
46
44
  }
47
45
  </SectionContext.Consumer>
48
46
  )}
@@ -25,7 +25,6 @@ export const Lead: React.FC<LayoutProps> = ({ slice }) => (
25
25
  {slice.children.slice(1).map((block, i) => {
26
26
  return (
27
27
  <Block
28
- /* eslint-disable-next-line */
29
28
  key={`titleVerticalCell-${i}`}
30
29
  data-testid={`titleVerticalCell-${i}`}
31
30
  >
@@ -23,7 +23,6 @@ export const BasicRow: React.FC<LayoutProps> = ({
23
23
  >
24
24
  {articles
25
25
  ? articles.map((article, i) => (
26
- /* eslint-disable-next-line */
27
26
  <Block
28
27
  spaceStack="space050"
29
28
  key={article.title}
@@ -33,7 +32,6 @@ export const BasicRow: React.FC<LayoutProps> = ({
33
32
  </Block>
34
33
  ))
35
34
  : slice.children.map((block, i) => (
36
- /* eslint-disable-next-line */
37
35
  <Block
38
36
  key={'article' in block ? block.article.id : i}
39
37
  data-testid={`titleTeaserVertical-${i}`}
@@ -65,22 +63,20 @@ export const Row3: React.FC<LayoutProps> = ({ slice }) => (
65
63
  columnGap={{ md: 'space050', lg: 'space050' }}
66
64
  data-testid={`${slice.name}-Grid`}
67
65
  >
68
- {
69
- (Areas) =>
70
- Object.entries(Areas).map((Area, i) => {
71
- const AreaComp = Area[1]
72
- const block = slice.children[i]
66
+ {(Areas) =>
67
+ Object.entries(Areas).map((Area, i) => {
68
+ const AreaComp = Area[1]
69
+ const block = slice.children[i]
73
70
 
74
- return (
75
- <AreaComp
76
- key={('article' in block && block.article.id) || i}
77
- data-testid={`titleTeaserVertical-${i}`}
78
- >
79
- {getBlock(block, 'horizontal')}
80
- </AreaComp>
81
- )
82
- })
83
- /* eslint-disable-next-line */
71
+ return (
72
+ <AreaComp
73
+ key={('article' in block && block.article.id) || i}
74
+ data-testid={`titleTeaserVertical-${i}`}
75
+ >
76
+ {getBlock(block, 'horizontal')}
77
+ </AreaComp>
78
+ )
79
+ })
84
80
  }
85
81
  </GridLayout>
86
82
  )
@@ -0,0 +1,8 @@
1
+ describe('Checkout account creation page', () => {
2
+ beforeEach(() => {
3
+ cy.mockConsentAndVisit('/checkout/account-creation')
4
+ })
5
+ it('should contain account creation form', () => {
6
+ cy.get('[data-testid="accountCreationForm"]').should('exist')
7
+ })
8
+ })
@@ -0,0 +1,19 @@
1
+ describe('Checkout payment details page', () => {
2
+ beforeEach(() => {
3
+ cy.mockConsentAndVisit('/checkout/payment-details')
4
+ })
5
+ it('should have corePackageContent and payment details section on large screen', () => {
6
+ cy.viewport(1280, 1000)
7
+ cy.get('[data-testid="core-package-content"]').should('be.visible')
8
+ cy.get('[data-testid="subscription-drawer"]').should('not.be.visible')
9
+
10
+ cy.get('[data-testid="page-header"]').should('be.visible')
11
+ cy.get('[data-testid="tab-group"]').should('be.visible')
12
+ })
13
+ it('should not have corePackageContent smaller than md screen', () => {
14
+ cy.viewport(760, 1000)
15
+ cy.get('[data-testid="core-package-content"]').should('not.be.visible')
16
+ cy.get('[data-testid="page-header"]').should('be.visible')
17
+ cy.get('[data-testid="tab-group"]').should('be.visible')
18
+ })
19
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/core",
3
- "version": "2.39.6-alpha.1",
3
+ "version": "2.39.6-alpha.3",
4
4
  "description": "Newskit Render - Core package",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -41,12 +41,12 @@
41
41
  "@emotion/styled": "11.10.4",
42
42
  "@newskit-render/api": "^1.6.2",
43
43
  "@newskit-render/auth": "^1.3.8",
44
- "@newskit-render/checkout": "^2.2.3",
44
+ "@newskit-render/checkout": "^2.2.4-alpha.0",
45
45
  "@newskit-render/feature-flags": "^1.4.9",
46
46
  "@newskit-render/feed": "^1.4.12",
47
- "@newskit-render/my-account": "^4.1.4",
48
- "@newskit-render/shared-components": "^2.1.3",
49
- "@newskit-render/standalone-components": "^2.1.5",
47
+ "@newskit-render/my-account": "^4.1.5-alpha.0",
48
+ "@newskit-render/shared-components": "^2.1.4-alpha.0",
49
+ "@newskit-render/standalone-components": "^2.1.6-alpha.0",
50
50
  "@newskit-render/validation": "^1.5.10",
51
51
  "cross-fetch": "3.1.5",
52
52
  "graphql": "16.6.0",
package/pages/index.tsx CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  getAcsCookie,
5
5
  ClientTypes,
6
6
  } from '@newskit-render/api'
7
- import { getHost } from '@newskit-render/shared-components'
8
7
  import { initAndGetFeatureFlag } from '@newskit-render/feature-flags' // create-render-app effected
8
+ import { getHost } from '@newskit-render/shared-components'
9
9
  import { optimizelysdkKey } from '../config' // create-render-app effected
10
10
  import { GET_PAGE } from '../queries'
11
11
  import SectionPage from '../components/section'