This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: playwright test migration (#717)
* feat: init playwright * test(core-progress): migrate to playwright * ci(playwright): run *.spec.ts tests only * test(core-scroll): migrate to playwright * fixup! feat: init playwright * ci(rollup): temporarly remove test files * ci: retry tests once * fix: redudant use property * fix(core-scroll-test): await expect * ci: use github reporter * feat: normalize scroll css * ci: use macos-latest github runner * ci(playwright): set timezone to GMT * test(core-datepicker): migrate to playwright * test(core-dialog): migrate to playwright * fix(core-datepicker): pad expected day * fix(core-datepicker): remove await * fix(core-datepicker): remove let datePicker * test(core-suggest): migrate to playwright * test(core-tabs): migrate to playwright * test(core-toggle): migrate to playwright * fix(core-datepicker-test): use setContent * chore: format using standard * chore: format playwright file using standard * build: remove old test files, deps and config * fix(core-datepicker-test): content should not have date * fix: missing awaits * fix(core-suggest-test): http was altered to https in firefox * fix(core-suggest-test): missing hidden attr * fix(core-toggle-test): skip for webkit and point to issue * fix(core-scroll-test): use setContent * fix(core-progress-test): use setContent * fix(core-toggle-test): use setContent * fix(core-scroll-test): wait for captureChangeEvent * fix(test-spec-html): mock fav icon and remove missing css links * fix(test-html): remove css files * refactor: remove normalize.css * refactor: playwright config cleanup * feat: typescript definitions for core-components (#720) * fix(js-docs): invalid typing * feat(typescript): generate type def for core-components * feat: index.d.ts for type definitions sourcing * fix: missing types in core-components tests * fix(core-scroll): add ignore to scroll in js * chore: npmignore test-, type-def-, and config files * build: compile type definitions after rollup bundling --------- Co-authored-by: Ole Christer Selvig <[email protected]> * fix: use tripple-slash reference in index.d.ts * ci: use multiple test workers * ci: output junit report * ci: test summary action * chore: remove unused afterEach * fix: summary action * build: change test script order * docs: playwright testing readme * build: use node v20 * refactor: enhance test readability with test steps * ci: retain trace on failure * ci: remove html reporter * refactor: use same page for all tests * test(core-datepicker): rework test for simple-date-parse to limit flakyness * chore: rename test-fixtures/page to not match globbing pattern of packages * chore: do not ship files for testing to npm * docs: Update testing section in github readme * refactor(core-suggest): sign anonyums timeout func * test(core-suggest): wait for signed timeout func * test: add Microsoft Edge test project --------- Co-authored-by: Ole Christer Selvig <[email protected]> Co-authored-by: Skjalg Teig <[email protected]>
- Loading branch information