I've noticed that our e2e tests don't work anymore. Well.. they (almost) did, I've just wrongly assumed that you can open web on standard metro port 8081 like in our example app. The only thing that required fix was default port number.
Nevertheless, this made me look into our e2e app and it resulted in few changes:
Bumped expo version
Added .gitignore
Changed scripts:
yarn start - now this script opens web bu default. Also it starts expo without opening browser
yarn test - it is easier to use this instead of npx playwright test
Changed default port to 19006
[!WARNING]
Previously tests on webkit (i.e. safari) didn't work. Now after upgrading browsers they do... but tests on firefox fail. From what I've found, it is because for some reason Locator.innerText returns empty string. Adding timeout doesn't fix it, so it doesn't seem like race condition. Maybe it will be fixed with new firefox update.
Description
I've noticed that our
e2e
tests don't work anymore. Well.. they (almost) did, I've just wrongly assumed that you can open web on standard metro port8081
like in our example app. The only thing that required fix was default port number.Nevertheless, this made me look into our
e2e
app and it resulted in few changes:.gitignore
yarn start
- now this script opensweb
bu default. Also it starts expo without opening browseryarn test
- it is easier to use this instead ofnpx playwright test
19006
Test plan
Go to
e2e/web-tests
and run:yarn start
yarn test