Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

(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:

  1. 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.
  2. 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)
  3. 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 ):

                             

...