You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,12 +53,30 @@ npm init -y
53
53
54
54
3.**Install the test suite package**
55
55
56
-
Lastly, simply run the command to install the elgentos Magento2 Playwright package, and the installation script will set things up for you! You will be prompted to input values for the `.env` variables, but these also come with default values.
56
+
Lastly, simply run the command to install the elgentos Magento2 Playwright package, and the installation script will set things up for you!
57
57
58
58
```bash
59
59
npm install @elgentos/magento2-playwright
60
60
```
61
61
62
+
4.**Generate .env file and add playwright to .gitignore (optional)**
63
+
64
+
Normally, you should be prompted to provide values for the .env variables during installation.
65
+
Each variable also comes with sensible default values.
66
+
67
+
<mark>⚠️ Due to limitations in how npm runs dependency install scripts, the install.js script is not executed automatically when this package is installed as a dependency.</mark>
68
+
69
+
If you want to (re)generate the .env file and configure your environment variables, run the following command manually from your playwright root folder:
0 commit comments