Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
nvm install 24
```

### WP-CLI

If [wp-cli](https://wp-cli.org/) is not installed on your local environment, install it using:
```bash
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
```

### Clone Repository

Using your preferred Git client or command line, clone this repository into the `wp-content/plugins/` folder of your local WordPress installation.
Expand Down Expand Up @@ -137,7 +146,7 @@ Our change above tells WordPress to use the test database for our test requests,
ChromeDriver is a headless (i.e. non-GUI) browser that our test suite uses to run End to End tests, interacting with the Kit
Plugin just as a user would - including full JavaScript execution, user inputs etc.

Download ChromeDriver for your Google Chrome version and OS from https://sites.google.com/chromium.org/driver/downloads?authuser=0
Download ChromeDriver for your Google Chrome version and OS from https://googlechromelabs.github.io/chrome-for-testing/#stable

For Mac users, copy the unzipped executable to `/usr/local/bin`.

Expand All @@ -146,7 +155,7 @@ For Mac users, copy the unzipped executable to `/usr/local/bin`.
First, run the ChromeDriver in a separate Terminal window:

```bash
chromedriver --url-base=/wd/hub
chromedriver --port=9515 --url-base=/wd/hub
```

![ChromeDriver Screenshot](/.github/docs/chromedriver.png?raw=true)
Expand Down
4 changes: 2 additions & 2 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ In a Terminal window, run the ChromeDriver. This is used by our test to mimic u
and other elements just as a user would see them:

```bash
chromedriver --url-base=/wd/hub
chromedriver --port=9515 --url-base=/wd/hub
```

In a second Terminal window, run the test to confirm it works:
Expand Down Expand Up @@ -450,7 +450,7 @@ Once you have written your code and test(s), run the tests to make sure there ar
If ChromeDriver isn't running, open a new Terminal window and enter the following command:

```bash
chromedriver --url-base=/wd/hub
chromedriver --port=9515 --url-base=/wd/hub
```

To run the tests, enter the following commands in a separate Terminal window:
Expand Down
Loading