playwright/installation-tests
Andrey Lushnikov e9ca11d91b
chore(installation-tests): introduce npm_i to install local packages (#12093)
This patch introduces `npm_i` command to install locally-built versions of
Playwright packages instead of fetching them from the registry.

With this patch:

```bash
npm i ${PLAYWRIGHT_CORE_TGZ}` # never needed anymore
npm_i playwright-core # the right way to install local package
```

Note that you can pass any NPM arguments to `npm_i` and cannot use it to install non-playwright packages.
2022-02-14 14:52:15 -08:00
..
bin chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
fixture-scripts chore: improve installation tests (#12092) 2022-02-14 12:23:08 -08:00
.gitignore chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
initialize_test.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
README.md chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
run_all_tests.sh chore: improve installation tests (#12092) 2022-02-14 12:23:08 -08:00
test_android_types.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08: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(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_npm_i_installs_local_package.sh chore(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08:00
test_playwright_chromium_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_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(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08: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(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08: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(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08: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(installation-tests): introduce npm_i to install local packages (#12093) 2022-02-14 14:52:15 -08: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.