Skip to content

Commit

Permalink
Merge branch 'master' into site-and-navroot
Browse files Browse the repository at this point in the history
  • Loading branch information
erral authored Sep 13, 2023
2 parents c36e623 + b6e1487 commit 8cccf82
Show file tree
Hide file tree
Showing 71 changed files with 1,934 additions and 216 deletions.
70 changes: 15 additions & 55 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3

Expand All @@ -24,20 +24,16 @@ jobs:
- run: yarn --immutable

- name: Cypress acceptance tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
BABEL_ENV: production
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RETRIES: 2
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
install: false
record: true
parallel: false # Since they run on different node versions, we can't parallel
browser: chrome
group: Core ${{ matrix.node-version }}
spec: cypress/tests/core/basic/**/*.js
start: |
make start-test-acceptance-server
Expand Down Expand Up @@ -65,7 +61,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3

Expand All @@ -80,20 +76,16 @@ jobs:
- run: yarn --immutable

- name: Cypress acceptance tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
BABEL_ENV: production
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RETRIES: 2
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
install: false
record: true
parallel: false # Since they run on different node versions, we can't parallel
browser: chrome
group: Core Blocks ${{ matrix.node-version }}
spec: cypress/tests/core/blocks/**/*.js
start: |
make start-test-acceptance-server
Expand Down Expand Up @@ -121,7 +113,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3

Expand All @@ -136,20 +128,16 @@ jobs:
- run: yarn --immutable

- name: Cypress acceptance tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
BABEL_ENV: production
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RETRIES: 2
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
install: false
record: true
parallel: false # Since they run on different node versions, we can't parallel
browser: chrome
group: Core Volto Slate ${{ matrix.node-version }}
spec: cypress/tests/core/volto-slate/**/*.js
start: |
make start-test-acceptance-server
Expand Down Expand Up @@ -191,20 +179,16 @@ jobs:
- run: yarn --immutable

- name: Cypress acceptance tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
BABEL_ENV: production
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RETRIES: 2
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
install: false
record: true
parallel: false # Since they run on different node versions, we can't parallel
browser: chrome
group: Core Basic - Plone 5
spec: cypress/tests/core/basic/**/*.js
start: |
make start-test-acceptance-server-5
Expand Down Expand Up @@ -246,20 +230,16 @@ jobs:
- run: yarn --immutable

- name: Cypress Coresandbox Acceptance tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
BABEL_ENV: production
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RETRIES: 2
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
install: false
record: true
parallel: true
browser: chrome
group: Coresandbox
spec: cypress/tests/coresandbox/**/*.js
start: |
make start-test-acceptance-server-coresandbox
Expand Down Expand Up @@ -302,21 +282,17 @@ jobs:
- run: yarn --immutable

- name: Cypress acceptance tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
BABEL_ENV: production
CYPRESS_API: guillotina
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RETRIES: 2
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
install: false
record: true
parallel: true
browser: chrome
group: Guillotina
spec: cypress/tests/guillotina/**/*.js
start: |
make start-test-acceptance-server-guillotina
Expand Down Expand Up @@ -359,20 +335,16 @@ jobs:
- run: yarn --immutable

- name: Cypress acceptance tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
BABEL_ENV: production
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RETRIES: 2
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
install: false
record: true
parallel: true
browser: chrome
group: Multilingual
spec: cypress/tests/multilingual/**/*.js
start: |
make start-test-acceptance-server-multilingual
Expand Down Expand Up @@ -440,20 +412,16 @@ jobs:
# CI: true

- name: Cypress acceptance tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
BABEL_ENV: production
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RETRIES: 2
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
install: false
record: true
parallel: true
browser: chrome
group: Working Copy
spec: cypress/tests/workingCopy/**/*.js
start: |
make start-test-acceptance-server-workingcopy
Expand All @@ -468,7 +436,7 @@ jobs:
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
if: always()
if: failure()
with:
name: cypress-videos
path: cypress/videos
Expand All @@ -481,7 +449,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
node-version: [18.x, 20.x]
env:
generator-directory: ./packages/generator-volto
project-directory: ./my-volto-app
Expand Down Expand Up @@ -531,20 +499,16 @@ jobs:
working-directory: ${{env.project-directory}}

- name: Cypress acceptance tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
BABEL_ENV: production
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RETRIES: 2
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
install: false
record: true
parallel: true
browser: chrome
group: Project Generator
spec: cypress/tests/minimal/**/*.js
start: |
make start-test-acceptance-server
Expand Down Expand Up @@ -593,20 +557,16 @@ jobs:
- run: yarn --immutable

- name: Cypress acceptance tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
BABEL_ENV: production
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RETRIES: 2
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
install: false
record: true
parallel: true
browser: chrome
group: Seamless
spec: cypress/tests/core/basic/**/*.js
config: baseUrl=http://localhost
start: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/towncrier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

env:
node-version: 16.x
node-version: 18.x

jobs:
towncrier:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3

# node setup
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
# remove workaround for 18.x once https://github.com/nodejs/node/issues/47563 is fixed
# remove workaround for 18.x once https://github.com/nodejs/node/issues/47563 is fixed
node-version: ${{ matrix.node-version == '18.x' && '18.15.0' || matrix.node-version }}
cache: yarn

Expand Down
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@

### Breaking

- Volto 17 drops support for NodeJS 14, and adds support for NodeJS 18.
- Volto 17 drops support for NodeJS 14, and adds support for Node.js 18.
Please see the [upgrade guide](https://6.docs.plone.org/volto/upgrade-guide/index.html)
for more information.

Expand Down Expand Up @@ -1410,7 +1410,7 @@ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information
- Update README with latest versions, point to Plone 6 as recommended default @sneridagh
- Trigger a new deploy core Plone documentation when Volto documentation is updated @esteele
- Update supported Python versions. @stevepiercy
- Add NodeJS 18 (LTS) usage notice @sneridagh
- Add Node.js 18 (LTS) usage notice @sneridagh
- Fix Netlify build @sneridagh
- Fix grammar in Theming Strategy. Fixes #954. @stevepiercy
- Fix wording in About Semantic UI. Fixes #953. @stevepiercy
Expand Down Expand Up @@ -1623,7 +1623,7 @@ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information

### Documentation

- Add NodeJS 18 (LTS) usage notice @sneridagh
- Add Node.js 18 (LTS) usage notice @sneridagh
- Fix Netlify build @sneridagh

## 16.0.0-alpha.45 (2022-10-24)
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,14 @@ On the [Plone Training website](https://training.plone.org), you'll find Volto-d

[Timo Stollenwerk - Reinventing Plone, Roadmap to the Modern Web](https://2018.ploneconf.org/talks/reinventing-plone-roadmap-to-the-modern-web)

## Node Support

- Node 18: Supported since Volto 17
- Node 16: Supported since Volto 14
- Node 14: No longer supported. It was supported from Volto 8.8.0 - 16
- Node 12: No longer supported. It was supported from Volto 4 - 15
- Node 10: No longer supported. It was supported from Volto 1 - 12
## Node.js Support

- Node.js 20: Supported since Volto 17
- Node.js 18: Supported since Volto 17
- Node.js 16: No longer supported. It was supported from Volto 14 - 16
- Node.js 14: No longer supported. It was supported from Volto 8.8.0 - 16
- Node.js 12: No longer supported. It was supported from Volto 4 - 15
- Node.js 10: No longer supported. It was supported from Volto 1 - 12

## Browser support

Expand Down
1 change: 1 addition & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = defineConfig({
viewportWidth: 1280,
chromeWebSecurity: false,
projectId: 'hvviu4',
video: true, // To remove when Test Replay is available in cypress.io
e2e: {
baseUrl: 'http://127.0.0.1:3000',
excludeSpecPattern: ['*~'],
Expand Down
21 changes: 12 additions & 9 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -780,13 +780,16 @@ Cypress.Commands.add('lineBreakInSlate', { prevSubject: true }, (subject) => {
);
});

Cypress.Commands.add('setSlateSelection', (subject, query, endQuery) => {
cy.get('.slate-editor.selected [contenteditable=true]')
.focus()
// .click()
.setSelection(subject, query, endQuery)
.wait(1000); // this wait is needed for the selection change to be detected after
});
Cypress.Commands.add(
'setSlateSelection',
(subject, query, endQuery, wait = 1000) => {
cy.get('.slate-editor.selected [contenteditable=true]')
.focus()
// .click()
.setSelection(subject, query, endQuery)
.wait(wait); // this wait is needed for the selection change to be detected after
},
);

Cypress.Commands.add('getSlateEditorAndType', (type) => {
cy.getSlate().focus().click().type(type);
Expand All @@ -804,9 +807,9 @@ Cypress.Commands.add('setSlateCursor', (subject, query, endQuery) => {
.wait(1000); // this wait is needed for the selection change to be detected after
});

Cypress.Commands.add('clickSlateButton', (button) => {
Cypress.Commands.add('clickSlateButton', (button, timeout = 1000) => {
cy.get(`.slate-inline-toolbar .button-wrapper a[title="${button}"]`, {
timeout: 1000,
timeout,
}).click({ force: true }); // force click is needed to ensure the button in visible in view.
});

Expand Down
Loading

0 comments on commit 8cccf82

Please sign in to comment.