shikelong / IonicUTPlayground

A repo try to reproduce ionic's unit test issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The app created by the newest @ionic/cli.

Ionic Info Output

Ionic:

   Ionic CLI       : 6.17.1 (/home/rioshi/.nvm/versions/node/v14.15.4/lib/node_modules/@ionic/cli)
   Ionic Framework : @ionic/react 5.8.0

Capacitor:

   Capacitor CLI      : 3.2.3
   @capacitor/android : not installed
   @capacitor/core    : 3.2.3
   @capacitor/ios     : not installed

Utility:

   cordova-res : not installed globally
   native-run  : 1.4.1

System:

   NodeJS : v14.15.4 (/home/rioshi/.nvm/versions/node/v14.15.4/bin/node)
   npm    : 6.14.10
   OS     : Linux 5.4

How to use?

  1. run npm i or yarn add
  2. run npm run test
  3. You will find the test case in src/components/Test.test.tsx failed.

Error Message:

Unable to find role="radio" TestingLibraryElementError: Unable to find an element with the display value: hello ionic.

About

A repo try to reproduce ionic's unit test issue


Languages

Language:TypeScript 62.8%Language:CSS 33.0%Language:HTML 4.2%