@times-components/ssr 2.58.10-alpha.1 → 2.58.10-alpha.8

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.
Files changed (23) hide show
  1. package/CHANGELOG.md +159 -0
  2. package/__tests__/{integration/article-indepth.js → cypress/e2e/article-indepth.cy.js} +1 -1
  3. package/__tests__/{integration/article-magazinecomment.js → cypress/e2e/article-magazinecomment.cy.js} +1 -1
  4. package/__tests__/{integration/article-magazinestandard.js → cypress/e2e/article-magazinestandard.cy.js} +1 -1
  5. package/__tests__/{integration/article-maincomment.js → cypress/e2e/article-maincomment.cy.js} +1 -1
  6. package/__tests__/{integration/article-mainstandard-default.js → cypress/e2e/article-mainstandard-default.cy.js} +1 -1
  7. package/__tests__/{integration/article-mainstandard-persisted-query.js → cypress/e2e/article-mainstandard-persisted-query.cy.js} +1 -1
  8. package/__tests__/{integration/author-profile-default.js → cypress/e2e/author-profile-default.cy.js} +1 -2
  9. package/__tests__/{integration/author-profile-persisted-query.js → cypress/e2e/author-profile-persisted-query.cy.js} +1 -1
  10. package/__tests__/cypress/support/commands.js +3 -1
  11. package/__tests__/helpers/article-helper.js +1 -1
  12. package/__tests__/helpers/author-profile-helper.js +1 -1
  13. package/cypress.config.js +19 -0
  14. package/dist/article.react.bundle.js +4 -4
  15. package/dist/article.react.bundle.js.map +1 -1
  16. package/dist/author-profile.react.bundle.js +1 -1
  17. package/dist/author-profile.react.bundle.js.map +1 -1
  18. package/dist/common.react.bundle.js +23 -23
  19. package/dist/common.react.bundle.js.map +1 -1
  20. package/package.json +8 -7
  21. package/src/component/article.js +2 -1
  22. package/cypress.json +0 -10
  23. /package/__tests__/cypress/support/{index.js → e2e.js} +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@times-components/ssr",
3
3
  "main": "src",
4
- "version": "2.58.10-alpha.1+99fa43b471",
4
+ "version": "2.58.10-alpha.8+2655c18281",
5
5
  "scripts": {
6
6
  "bundle:dev": "yarn cleanup-dist && webpack --config=webpack.config.js",
7
7
  "bundle:prod": "yarn cleanup-dist && NODE_ENV=production webpack --config=webpack.config.js -p",
@@ -16,6 +16,7 @@
16
16
  "start:testserver": "GRAPHQL_ENDPOINT=http://localhost:4000/graphql SPOT_ID=5p0t_1m_1d yarn start & wait-on tcp:3000",
17
17
  "stop:testserver": "kill $(lsof -t -i:3000)",
18
18
  "test:integration": "yarn bundle:prod && yarn start:testserver && cypress run; exitCode=$?; yarn stop:testserver; exit $exitCode",
19
+ "test:integration:ci": "yarn bundle:prod && yarn start:testserver && circleci tests glob './__tests__/integration/**.js' | circleci tests run --command=\"tr ' ' ',' | xargs npx cypress run --reporter cypress-circleci-reporter --spec \" --verbose --split-by=timings; exitCode=$?; yarn stop:testserver; exit $exitCode",
19
20
  "test:integration:debug": "yarn start:testserver && DEBUG=cypress:* cypress open; exitCode=$?; yarn stop:testserver; exit $exitCode",
20
21
  "test:integration:update": "yarn bundle:prod && yarn start:testserver && cypress run --env updateSnapshots=true; exitCode=$?; yarn stop:testserver; exit $exitCode"
21
22
  },
@@ -36,9 +37,8 @@
36
37
  "devDependencies": {
37
38
  "@times-components/eslint-config-thetimes": "^0.8.18",
38
39
  "@times-components/fixture-generator": "^0.35.1",
39
- "@times-components/mock-tpa-server": "^0.4.9",
40
+ "@times-components/mock-tpa-server": "^0.4.10",
40
41
  "axe-core": "3.3.1",
41
- "cypress": "^9.2.0",
42
42
  "cypress-axe": "0.13.0",
43
43
  "cypress-failed-log": "2.5.1",
44
44
  "cypress-image-snapshot": "^4.0.0",
@@ -52,10 +52,10 @@
52
52
  "webpack": "4.30.0"
53
53
  },
54
54
  "dependencies": {
55
- "@times-components/article": "^7.17.11-alpha.1+99fa43b471",
56
- "@times-components/author-profile": "^6.18.23",
55
+ "@times-components/article": "^7.17.11-alpha.8+2655c18281",
56
+ "@times-components/author-profile": "^6.19.6",
57
57
  "@times-components/context": "^1.24.0",
58
- "@times-components/provider": "^1.41.3",
58
+ "@times-components/provider": "^1.41.4",
59
59
  "@times-components/schema": "^0.7.5",
60
60
  "@times-components/tealium": "^1.15.3",
61
61
  "@times-components/ts-styleguide": "^1.50.34",
@@ -66,6 +66,7 @@
66
66
  "apollo-link-error": "1.1.2",
67
67
  "apollo-link-http": "1.5.14",
68
68
  "apollo-link-persisted-queries": "0.2.2",
69
+ "cypress": "^13.14.0",
69
70
  "cypress-wait-until": "1.7.2",
70
71
  "node-fetch": "2.6.7",
71
72
  "react": "16.9.0",
@@ -78,5 +79,5 @@
78
79
  "publishConfig": {
79
80
  "access": "public"
80
81
  },
81
- "gitHead": "99fa43b4711ba31c13aef13fa2da1516918c10d7"
82
+ "gitHead": "2655c18281adc0fb5e38a4f015ba1e258c6dcfa1"
82
83
  }
@@ -87,7 +87,8 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
87
87
  isSavingEnabled: sharingSavingFlag,
88
88
  isSharingEnabled: sharingSavingFlag,
89
89
  isCommentEnabled: commentingFlag,
90
- isEntitlementFeatureEnabled
90
+ isEntitlementFeatureEnabled,
91
+ isPreview
91
92
  },
92
93
  error,
93
94
  isLoading,
package/cypress.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "baseUrl": "http://localhost:3000",
3
- "fixturesFolder": false,
4
- "integrationFolder": "__tests__/integration",
5
- "pluginsFile": "__tests__/cypress/plugins",
6
- "screenshotsFolder": "__tests__/screenshots",
7
- "supportFile": "__tests__/cypress/support",
8
- "video": false,
9
- "blockHosts": ["*spot.im"]
10
- }
File without changes