An example of the following techniques:
- UI driven development via "acceptance tests" using Playwright
- UI testing a webapp on multiple different platforms: browser, Electron, Android
- Sharing code between webapp, tests, Electron
- Using figma-sync to share styles between Figma and the browser
- Drag and drop, along with how to test it in Playwright
The (very crude) Figma design used can be found here: https://www.figma.com/file/4FqjOyGsXBVaZ7q0t0tA54/Design-System-Example?node-id=2%3A1089&t=NyCFVJj0sPYcSyie-0
- Install Nodenv: https://github.com/nodenv/nodenv#homebrew-on-macos
- Install Node version:
$ nodenv install 18.6.0 - Install Yarn 2: https://yarnpkg.com/getting-started/install
- Install dependencies:
$ yarn install - Test it works!
$ yarn start:webapp
- Install android studio: https://developer.android.com/studio
- Ensure command line tools are installed
- Preferences > Appearance & Behavior > System Settings > Android SDK > SDK Tools
- Tick
Android SDK Command-line Tools
- Add android commandline tools to your path
- Open
~/.bashrcor~/.zshrcdepending on your shell - Add the line
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/binto update your path
- Open
- Run
$ yarn bootstrap
This will install android avd for acceptance tests, gradle for android, package everything up, etc
Upgrade Webstorm to latest version, or at least 2021.3.1