-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:component webclient testing (#892)
* added compoinent testing * updated the test fixtures * added component testing for the footer * fixed a typing bug * formatting fixes * added a token based modal test * added component tests to the ci * fixed the package.json * removed `wait-on` * simplified actions/checkout to v4 * fixed the `working-directory` of the component test * another test of the component test * more tests * tested a different config * tested a different approach * test v5 * test v6 * test v7 * test v8 * tested different versions * tested only chrome * tested only firefox * Revert "tested only firefox" This reverts commit 7f7d3bb. * test * test * formatting * formatting
- Loading branch information
1 parent
4578540
commit 1c955a9
Showing
35 changed files
with
1,253 additions
and
915 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
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup | Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
- name: Setup | Rust | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
|
@@ -35,7 +35,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup | Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
- name: Setup | Rust | ||
uses: actions-rust-lang/[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 |
---|---|---|
|
@@ -9,18 +9,18 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
webclient-ui-test: | ||
webclient-e2e-test: | ||
strategy: | ||
matrix: | ||
browser: | ||
- chrome | ||
- firefox | ||
runs-on: ubuntu-latest | ||
container: | ||
image: cypress/browsers:node16.16.0-chrome107-ff107 | ||
image: cypress/browsers:node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1 | ||
options: --user 1001 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- uses: pnpm/[email protected] | ||
with: | ||
|
@@ -36,7 +36,7 @@ jobs: | |
webclient-linting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: 'npm' | ||
|
@@ -48,7 +48,7 @@ jobs: | |
uses: ./.github/workflows/_docker-build.yml | ||
needs: | ||
- webclient-linting | ||
- webclient-ui-test | ||
- webclient-e2e-test | ||
with: | ||
image_suffix: webclient | ||
context: ./webclient | ||
|
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,5 +1,12 @@ | ||
import { defineConfig } from "cypress"; | ||
|
||
export default defineConfig({ | ||
projectId: "u6fxcx", | ||
e2e: {}, | ||
component: { | ||
devServer: { | ||
framework: "vue", | ||
bundler: "vite", | ||
}, | ||
}, | ||
}); |
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,8 @@ | ||
import type { mount } from "cypress/vue"; | ||
declare global { | ||
namespace Cypress { | ||
interface Chainable { | ||
mount: mount; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.