webdriverio/appium-boilerplate

add github actions example

kopax-polyconseil opened this issue · 9 comments

Pre-check

I'm aware that I can edit the docs and submit a pull request

Describe the improvement

I'd like to report Missing documentation

Example available

  • iOS app
  • iOS browser
  • Android app
  • Android browser
  • Desktop browser safari
  • Desktop browser chrome

Description of the improvement / report

Hi guys, someone of yours hinted me to this project to get my configuration done. It is really interesting to read that repo, but reason why we choosed appium for our e2e testing was the hability to run in a CI process and I've been trying to run test in:

  • iOS-browser : #134
  • iOS-native : #134
  • Android-browser : #135
  • Android-native : #134
  • Browser safari: #138
  • Browser chrome: #138

I know this is a typescript boilerplate and conf, but it could be nice to share efforts and maintain a certain validity for this repo by adding a way to check if this boilerplate is still applicable.

I agree. Testing this repository makes sense and is what we do in other boilerplates too. Any contributions to this are welcome!

I just opened two PRs:

Note:

  • I am not able to get iOS app and browser succeed in GitHub actions for iOS platform yet.
  • I'd like to add a selenium-webdriver + webdriverio example as many mobile apps are web application (react-native-web), should this be also a right place to show a webdriverio config for testing a desktop web application?

Any contributions to this are welcome!

I have estimated 3 weeks to integrate those and I am not sure if I can do it without help.

Any advice would help save time, for instance:

  • I can't move tsconfig.json into e2e/tsconfig.json , e2e being my root directory for e2e, it includes tests and config and I can't move forward until I found a way to do it <- ✔️ I did a patch-package that solve temporary webdriverio/webdriverio#6939
  • I have no example on how to start iOS simulator properly in github action. I have timeout when running tests and I don't know what that means, this is how I try : pass-culture/pass-culture-app-native#3876

Let me know for those two PRs and the necessity to include desktop app e2e configuration. Any help is always welcome!

I just added iOS images.

Should we now add some desktop chrome &/or safari tests using webdriverio stratégie ?
I am thinking to make './tests/specs/**/browser*.spec.ts' pass on desktop (using devtools api maybe?), let me know if you share the interest and have opinion.

I just updated the PR with code sample that I have tested and work in CI for browser. I didn't sign all CLA but if one is interested he can redo the PR with the necessary cleaning.

Thanks to all for help

I didn't sign all CLA

Why not?

It was straight forward at the beggining, then it asked me more and more info or I ended up in loop so I didn't waste time with the system, sorry, the (not so valuable) proposition is still here.

I mean if you have no issues if I just copy the code into the repository and therefor "steal" your contribution, I am happy to move forward.

No issue, team work 🦾 !