diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 24ee0d3d212..97063f5b00d 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -1227,9 +1227,9 @@ jobs: name: cypress-videos path: packages/volto/cypress/videos - prefix: + prefix-core: if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name - name: Prefixed site + name: Core Basic Prefixed Site runs-on: ubuntu-latest timeout-minutes: 35 strategy: @@ -1290,7 +1290,7 @@ jobs: install: false working-directory: packages/volto browser: chrome - spec: cypress/tests/minimal/**/*.js + spec: cypress/tests/core/basic/**/*.js config: baseUrl=http://localhost/foo env: prefixPath=/foo start: | diff --git a/packages/volto/cypress/tests/core/basic/actions.js b/packages/volto/cypress/tests/core/basic/actions.js index 58c87c0a3d6..5ede8f54718 100644 --- a/packages/volto/cypress/tests/core/basic/actions.js +++ b/packages/volto/cypress/tests/core/basic/actions.js @@ -8,6 +8,9 @@ describe('actions Tests', () => { allow_discussion: true, }); cy.visit('/contents'); + cy.wrap({ + prefix: 'test', + }).as('prefix'); }); it('copy', function () { cy.get('tr[aria-label="/my-page-1"]').within(() => { @@ -20,7 +23,7 @@ describe('actions Tests', () => { cy.get('a[class="icon-align-name"]').should( 'have.attr', 'href', - '/copy_of_my-page-1/contents', + `${this.prefix}/copy_of_my-page-1/contents`, ); }); }); @@ -44,7 +47,7 @@ describe('actions Tests', () => { cy.get('a[class="icon-align-name"]').should( 'have.attr', 'href', - '/my-page-1/contents', + `${this.prefix}/my-page-1/contents`, ); }); }); @@ -62,7 +65,7 @@ describe('actions Tests', () => { cy.get('a[class="icon-align-name"]').should( 'have.attr', 'href', - '/my-page-rename/contents', + `${this.prefix}/my-page-rename/contents`, ); }); });