ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

Switch QUnit tests to WDIO

Open pskelin opened this issue 7 years ago • 2 comments

Tasks:

  • [x] rewrite all component tests with the WDIO runner
  • [x] remove the jest and qunit runner

Qunit files:

  • [x] Badge
  • [x] Calendar
  • [x] Card
  • [x] DatePicker
  • [x] DayPicker
  • [x] Dialog
  • [x] Input
  • [x] Label
  • [x] Link
  • [x] List
  • [x] ListItem
  • [x] Panel
  • [x] Popover
  • [x] RadioButton
  • [x] TabContainer
  • [x] TextArea
  • [x] Title

pskelin avatar Oct 15 '19 09:10 pskelin

WDIO is a test framework, using jasmine-like syntax. Please see the API here: https://webdriver.io/docs/api.html

Please note the methods: https://webdriver.io/docs/api/element/shadow$.html and https://webdriver.io/docs/api/element/shadow$$.html in particular.

The goal of the task is to go through the QUnit tests and check which ones of them are worth keeping (are meaningful, are not duplicates of something that is already tested with the respective WDIO test for the same component). Then rewrite them in the WDIO syntax.

A couple of words about the WDIO tests. They are found here: https://github.com/SAP/ui5-webcomponents/tree/master/packages/main/test/specs

and most of them start by navigating the browser to a test page, such as: browser.url("http://localhost:8080/test-resources/pages/CheckBox.html");

These test pages are found here: https://github.com/SAP/ui5-webcomponents/tree/master/packages/main/test/pages

Then the tests perform operations on the given pages.

To run just a single spec locally, from the main package directory: ui5-webcomponents/packages/main run: npx wdio --spec=test/specs/CheckBox.spec.js

vladitasev avatar Nov 05 '19 12:11 vladitasev

Everything is implemented.

fifoosid avatar Dec 19 '19 09:12 fifoosid