https://github.com/lslezak/d-installer-test-playwright
About Experimental integration tests for the D-Installer (using the Playwright framework)
https://github.com/lslezak/d-installer-test-playwright
Last synced: 3 days ago
JSON representation
About Experimental integration tests for the D-Installer (using the Playwright framework)
- Host: GitHub
- URL: https://github.com/lslezak/d-installer-test-playwright
- Owner: lslezak
- License: gpl-2.0
- Created: 2022-12-07T18:47:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T13:59:17.000Z (over 3 years ago)
- Last Synced: 2025-10-28T12:31:40.373Z (8 months ago)
- Language: TypeScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Experimental End-to-End Tests for the D-Installer
This is a testing repository with integrations tests for the
[D-Installer](https://github.com/yast/d-installer) project.
## Playwright
These tests use the [Playwright](https://playwright.dev/) testing framework.
## Installation
Checkout this repository and run this command in it:
```shell
npm install
```
This will install the NPM packages into the `node_modules` subdirectory
and download the browsers into the `~/.cache/ms-playwright` directory.
*Note: The downloaded browsers need almost 1GB, make sure you have enough
space in your $HOME directory.*
## Editing the Tests
- `playwright.config.ts` - Playwright configuration, see [documentation](
https://playwright.dev/docs/test-configuration) for more details
- `global-setup.ts` - a helper for logging-in
- `tests/\*.spec.ts` - individual test files
## Running the Tests
### Setting the Target
This project defines the default URL as `https://localhost:9090` which
expects the D-Installer is running locally. If you want to run the test against
an instance which is running elsewhere use set the `BASE_URL` environment
variable.
```
BASE_URL=https://192.168.1.12:9090
```
### Examples
Or you can run the tests from command line. To run all tests using the embedded
Electron browser:
```
npx playwright test
```
To run just a specific test:
```
npx playwright test tests/root_password.spec.ts
```
The tests are by default run in headless mode, if want to see the actions
in a browser use the `--headed` option.
If you want to manually run a test step by step use the `--debug` option.
## Playwright Documentation
- https://playwright.dev/docs/intro