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
+18-26Lines changed: 18 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,41 +1,33 @@
1
-
[](https://github.com/ddev/ddev-addon-template/actions/workflows/tests.yml)
This service can be used with any project type. The examples below are Drupal-specific. Contributions for docs and tests that show this service working with other project types are appreciated.
8
11
9
-
## Install/Update
12
+
## Installation
10
13
11
-
For DDEV v1.23.5 or above run
12
-
13
-
```sh
14
+
```bash
14
15
ddev add-on get ddev/ddev-selenium-standalone-chrome
15
-
```
16
-
17
-
For earlier versions of DDEV run
18
-
19
-
```sh
20
-
ddev get ddev/ddev-selenium-standalone-chrome
21
-
```
22
-
23
-
Then restart your project
24
-
25
-
```sh
26
16
ddev restart
27
17
```
28
18
29
19
> [!NOTE]
30
-
> If you change `additional_hostnames` or `additional_fqdns`, you have to re-run `ddev add-on get ddev/ddev-selenium-standalone-chrome`
20
+
> Run `ddev add-on get ddev/ddev-selenium-standalone-chrome` after changes to `name`, `additional_hostnames`, `additional_fqdns`, or `project_tld` in `.ddev/config.yaml` so that `.ddev/docker-compose.selenium-chrome_extras.yaml` is regenerated.
21
+
22
+
After installation, make sure to commit the `.ddev` directory to version control.
31
23
32
24
### Optional steps
33
25
34
26
1. Update the provided `.ddev/config.selenium-standalone-chrome.yaml` as you see fit (and remove the #ddev-generated line). You can also just override lines in your `.ddev/config.yaml`
35
27
1. Check `config.selenium-standalone-chrome.yaml` and `docker-compose.selenium-chrome.yaml` into your source control.
36
28
1. Update by re-running `ddev add-on get ddev/ddev-selenium-standalone-chrome`.
37
29
38
-
## Use
30
+
## Usage
39
31
40
32
- Your project is now ready to run FunctionalJavascript and [Nightwatch](https://www.drupal.org/docs/automated-testing/javascript-testing-using-nightwatch) tests from Drupal core, or [Drupal Test Traits](https://gitlab.com/weitzman/drupal-test-traits) (DTT). All these types are tested in this repo. Some examples to try:
41
33
- FunctionalJavascript:
@@ -53,10 +45,10 @@ ddev restart
53
45
54
46
### The easy way: Use noVNC (built-in)
55
47
56
-
1. Remove --headless from the MINK_DRIVER_ARGS_WEBDRIVER in your project's .ddev/config.selenium-standalone-chrome.yaml. Run `ddev restart`.
57
-
2. On your host, run `ddev launch :7900` or browse to https://[DDEV SITE URL]:7900 to watch tests run with noVNC (neat!).
48
+
1. Remove `--headless` from the `MINK_DRIVER_ARGS_WEBDRIVER` in your project's `.ddev/config.selenium-standalone-chrome.yaml`. Run `ddev restart`.
49
+
2. On your host, run `ddev launch :7900` or browse to `https://[DDEV SITE URL]:7900` to watch tests run with noVNC (neat!).
58
50
59
-
By default noVNC connects without password, you can enable password by removing the "VNC_NO_PASSWORD=1" line in the file `docker-compose.selenium-chrome.yaml`, the default password will be `secret`, and you can set the custom one via `VNC_PASSWORD` environment variable.
51
+
By default noVNC connects without password, you can enable password by removing the `VNC_NO_PASSWORD=1` line in the file `docker-compose.selenium-chrome.yaml`, the default password will be `secret`, and you can set the custom one via `VNC_PASSWORD` environment variable.
60
52
61
53
This enables you to quickly see what is going on with your tests.
62
54
@@ -74,15 +66,15 @@ If you want to use the browser provided by this addon to check out the test resu
74
66
2. Uncomment the two lines about `ports` and `5900:5900`.
75
67
3. Execute `ddev restart`.
76
68
77
-
You can now connect to [DDEV SITE URL]:5900 (password: `secret`) in your VNC client.
69
+
You can now connect to `[DDEV SITE URL]:5900` (password: `secret`) in your VNC client.
78
70
79
71
Note that when using `ports`, only one project at a time can be running with port 5900.
80
72
81
73
### Behat config example
82
74
83
75
If you use Behat as a test running, adjust your `behat.yml`
84
76
85
-
```yml
77
+
```yaml
86
78
extensions:
87
79
Behat\MinkExtension:
88
80
base_url: http://web
@@ -101,6 +93,6 @@ If you use Behat as a test running, adjust your `behat.yml`
101
93
102
94
- Anyone is welcome to submit a PR to this repo. See README.md at https://github.com/ddev/ddev-addon-template, the parent of this repo.
103
95
104
-
## Maintainer
96
+
## Credits
105
97
106
-
- Contributed and maintained by [@weitzman](https://github.com/weitzman).
98
+
**Contributed and maintained by [@weitzman](https://github.com/weitzman)**
0 commit comments