-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from Sitecore/e2e-outcome-page
Two new e2e tests & seperate Components and E2E test into their own GitHub actions.
- Loading branch information
Showing
6 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Run Cypress Tests | ||
name: Run Cypress Component Tests | ||
|
||
on: [workflow_dispatch, push] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Run Cypress E2E Tests | ||
|
||
on: [workflow_dispatch, push] | ||
|
||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cypress run | ||
uses: cypress-io/github-action@v3 | ||
with: | ||
project: ./ | ||
browser: chrome | ||
build: yarn build | ||
start: yarn start | ||
wait-on: "http://localhost:3000" | ||
env: | ||
SITECORE_CH1_ENDPOINT_URL: ${{ secrets.SITECORE_CH1_ENDPOINT_URL }} | ||
SITECORE_CH1_CLIENT_KEY: ${{ secrets.SITECORE_CH1_CLIENT_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const backgroundImageFileName = "182bc6d196aa465cbf9b614ff2883eb4" | ||
|
||
describe('Theme switcher', () => { | ||
it('Choosing Fantasy theme should change background and buttons', () => { | ||
cy.visit('/'); | ||
cy.get('.css-uvp8xs > :nth-child(2) > .chakra-stack > .chakra-button').click(); | ||
cy.get('div#backgroundImage').should('have.css', 'background-image').and('include', backgroundImageFileName); | ||
cy.get('[value="Bard"]').should('have.css', 'background-image').and('include', "/fantasy/button-default.svg"); | ||
|
||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66bcc43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sitecore-migration-game – ./
sitecore-migration-game-sitecoretechnicalmarketing.vercel.app
sitecore-migration-game-git-main-sitecoretechnicalmarketing.vercel.app
sitecore-migration-game.vercel.app