-
Notifications
You must be signed in to change notification settings - Fork 4
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 #365 from ably/update-testing-strategy
[WEB-3840] remove Cypress in favour of Storybook's test-runner
- Loading branch information
Showing
58 changed files
with
13,892 additions
and
3,183 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
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 |
---|---|---|
|
@@ -31,22 +31,16 @@ jobs: | |
./scripts/release.sh "${GITHUB_REF/refs\/tags\//}" | ||
shell: bash | ||
deploy-storybook: | ||
name: Deploy to Storybook | ||
name: Deploy Storybook to GH Pages | ||
runs-on: ubuntu-latest | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- run: ls -l | ||
- name: Build | ||
shell: bash | ||
run: | | ||
echo "::group::Build" | ||
yarn install | ||
yarn build-storybook | ||
echo "::endgroup::" | ||
run: yarn && yarn build-storybook | ||
- name: Upload | ||
uses: actions/[email protected] | ||
with: | ||
|
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,8 +1,6 @@ | ||
.bundle | ||
.DS_Store | ||
node_modules | ||
cypress/screenshots | ||
cypress/videos | ||
server_killer.rb | ||
yarn-error.log | ||
/dist | ||
|
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,12 @@ | ||
import type { TestRunnerConfig } from "@storybook/test-runner"; | ||
|
||
const config: TestRunnerConfig = { | ||
async postVisit(page, context) { | ||
// the #storybook-root element wraps the story. In Storybook 6.x, the selector is #root | ||
const elementHandler = await page.$("#storybook-root"); | ||
const innerHTML = await elementHandler.innerHTML(); | ||
expect(innerHTML).toMatchSnapshot(); | ||
}, | ||
}; | ||
|
||
export default config; |
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,13 +1,12 @@ | ||
{ | ||
"jsc": { | ||
"target": "es2018", | ||
"target": "es2021", | ||
"parser": { | ||
"syntax": "typescript", | ||
"tsx": true, | ||
"decorators": false, | ||
"dynamicImport": false | ||
} | ||
"dynamicImport": false, | ||
}, | ||
}, | ||
"exclude": [".stories.tsx"], | ||
"minify": true | ||
"minify": true, | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
cypress/e2e/core/contact_footer/__snapshots__/snapshots.cy.js.snap
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.