mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-07 07:51:09 +00:00
Modal and Popup specs: wait for states instead of sleeping; run them
Each test wrapped its whole sequence in waitFor() and slept 1s inside
every step, so waitFor's 1s timeout always expired ("Timed out in
waitFor"). Steps are now awaited in order, "open" is findBy* and
"closed" a single-condition waitFor, with an explicit cleanup between
tests. Both now pass (4 and 3) and exit, so they leave the yarn test
exclusions.
This commit is contained in:
1 parent
a909c0709b
commit
8539e30888
3 files changed
+34
-47
No files matched your search
+1
-1
@@ -42,7 +42,7 @@
|
||||
"lint": "pezkuwi-dev-run-lint",
|
||||
"postinstall": "pezkuwi-dev-yarn-only",
|
||||
"start": "yarn clean && cd packages/apps && yarn pezkuwi-exec-webpack serve --config webpack.serve.cjs --port 3000",
|
||||
"test": "pezkuwi-dev-run-test --env browser ^typesBundle ^chainEndpoints ^chainTypes ^:.slow. ^Accounts/index.spec ^modals/Create.spec ^Contacts/index.spec ^Bounties.spec ^AccountSidebar ^Modal/Modal.spec ^Popup/Popup.spec",
|
||||
"test": "pezkuwi-dev-run-test --env browser ^typesBundle ^chainEndpoints ^chainTypes ^:.slow. ^Accounts/index.spec ^modals/Create.spec ^Contacts/index.spec ^Bounties.spec ^AccountSidebar",
|
||||
"test:all": "pezkuwi-dev-run-test --env browser ^chainEndpoints ^chainTypes",
|
||||
"test:one": "pezkuwi-dev-run-test --env browser",
|
||||
"test:skipped": "echo 'tests skipped'"
|
||||
|
||||
Reference in new issue
Block a user