playwright/installation-tests
2022-04-08 10:46:24 -07:00
..
bin chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
fixture-scripts chore: always import type (#13365) 2022-04-06 14:57:14 -07:00
.gitignore chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
initialize_test.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
README.md chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
run_all_tests.sh chore: improve installation tests (#12092) 2022-02-14 12:23:08 -08:00
test_android_types.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
test_connect_to_selenium.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_electron_types.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
test_npm_i_installs_local_package.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
test_npx_global_codegen.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
test_npx_global_help.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
test_npx_global_install.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
test_playwright_chromium_should_work.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
test_playwright_cli_codegen_should_work.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_cli_install_should_work.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_cli_screenshot_should_work.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_driver_should_work.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_electron_should_work.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_firefox_should_work.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
test_playwright_global_installation_cross_package.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_global_installation_subsequent_installs.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
test_playwright_global_installation.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_should_work_with_relative_browsers_path.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_should_work_with_relative_home_path.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_should_work.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_test_should_work.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_test_stacks_should_work.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_validate_dependencies_skip_executable_path.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_validate_dependencies.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_webkit_should_work.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00
test_screencast.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_skip_browser_download_inspect_with_custom_executable.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_skip_browser_download.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_typescript_types.sh chore: don't auto-install browsers if global install (#13299) 2022-04-08 10:46:24 -07:00

Installation Tests

These tests check end-to-end installation and operation of Playwright. Each test is set with a separate folder that contains all scripts from fixture-scripts folder and dummy package.json.

To create a new test, create a new file that starts with test_*.sh with the following header:

```bash
#!/bin/bash
source ./initialize_test.sh && initialize_test "$@" # initialize test
```

To run all tests:

./run_all_tests.sh

To install local builds of playwright packages in tests, do npm_i playwright.

Each test run will get its own npm state. You can use local-playwright-registry <package> to ensure it was installed as part of the test run, and that it was a local copy.