ci(workflow): add ci-cd-pr-web-wallet.yml#618
Conversation
5310fc7 to
5c5d700
Compare
2cbb2dd to
02a0d97
Compare
|
@calmcat2 where is the integration test? I can not find it?
|
|
@dadiorchen I followed the README Testing with Cypress section. It describes three kinds of tests: component, end-to-end (E2E), and integration, all using Cypress. From the root package.json, it looks like there are only three relevant scripts for the web module:
cypress-e2e-test and cypress-e2e-headless-test appear to run the same E2E suite, just with different modes (headed vs headless), and there is no separate script explicitly named for “integration” tests. I initially assumed the integration tests were included in cypress-e2e-headless-test, but I might be wrong. Could you please clarify which script in |
|
I have changed the readme, e2e will be done by BDD now. As I mentioned before, the work e2e in cypress is misleading, the command above is integration test, actually, e2e and integration is actually the way how do we write test, if we use mock API I call it integration test, in the test code you can find the mock API like this: treetracker-wallet-app/apps/web/cypress/e2e/create-wallet.cy.ts Lines 17 to 20 in 0b21dba So, that command is good to run for our web integration test, for you, you just make sure:
|
|
@dadiorchen Thanks for the clarification. I think both tests are already included in the workflow:
Please let me know what else I need to consider. |

Description
There are two changes:
cypress-e2e-headless-test,cypress-component-test) whenever a pull request modifies non-Markdown files in theapps/web/**module..github/github-ci.ymlResolves: 607
Changes Made
.github/workflows/folderType of Change
functionality to not work as expected)
Screenshots
The workflow has been verified in a forked repo.

Checklist:
Additional Comments
The workflow requires github actions secrets. The following secrets have been added to the upstream repo.