(This wiki is based on the personal experience of Oleksandr Antonenko)
...
git clone git@github.com:folio-org/platform-core.git
cd platform-core
git checkout snapshot
yarn
yarn test-int --run WD:loan_-renewal
How to test local changes for UI modules:
...
- After that we can go to the platform-core directory and run tests:
yarn test-int
Some hints:
- In tests, you should use CSS selectors instead of [data-test...] attributes, cause these attributes will be stripped from the production build and therefore are unavailable when the integration tests run against folio-testing or folio-snapshot.
- Always check the current state of the back-end, cause some dependencies may cause unexpected behavior. (the possible way is to destroy and restart vagrant before running tests)
- You can check out what is going on by:
- providing the
--show
option:
yarn test-int --show
- adding show: true property in nightmare config or particular scenario ( as it shown in the screenshot ):
...