Skip to content

Commit

Permalink
Migrate end-to-end tests from Cypress to Playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
elchininet committed Jan 4, 2024
1 parent e5f0228 commit 0a1223f
Show file tree
Hide file tree
Showing 30 changed files with 1,145 additions and 2,733 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
/test/index.js
/test/index.d.ts
/coverage
/.nyc_output
/.nyc_output
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
2 changes: 1 addition & 1 deletion .hass/config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ lovelace:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
extra_module_url: /local/home-assistant-query-selector-tests.js
extra_module_url: /local/home-assistant-query-selector.js

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ This is from where the idea of `home-assistant-query-selector` comes from. Imagi

There are exhaustive end-to-end tests in place in this library, when a new version of `Home Assistant` is released, running the end-to-end tests in this repository will ensure that the library still works with the new version, so no need to manually check this.

#### End-to-end tests

![end-to-end tests](https://raw.githubusercontent.com/elchininet/home-assistant-query-selector/master/images/tests.png)

#### Code coverage

![code-coverage](https://raw.githubusercontent.com/elchininet/home-assistant-query-selector/master/images/coverage.png)

### Code example

More details of the API can be consulted in [the API section](#api):
Expand Down
15 changes: 0 additions & 15 deletions cypress.config.ts

This file was deleted.

Loading

0 comments on commit 0a1223f

Please sign in to comment.