Skip to content

Commit

Permalink
Test core basic with prefixed site
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleybl committed Mar 14, 2024
1 parent ad3a147 commit 4ef1a5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand Down
9 changes: 6 additions & 3 deletions packages/volto/cypress/tests/core/basic/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand All @@ -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`,
);
});
});
Expand All @@ -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`,
);
});
});
Expand All @@ -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`,
);
});
});
Expand Down

0 comments on commit 4ef1a5f

Please sign in to comment.