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: .github/CONTRIBUTING.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -39,9 +39,9 @@ DEBUG=codeceptjs:* npx codeceptjs run
39
39
40
40
## Helpers
41
41
42
-
Please keep in mind that CodeceptJS have **unified API** for Playwright, WebDriverIO, Appium, Nightmare, Puppeteer, TestCafe. Tests written using those helpers should be compatible at syntax level. However, some of helpers may contain unique methods. That happens. If, for instance, WebDriverIO has method XXX and Nightmare doesn't, you can implement XXX inside Nightmare using the same method signature.
42
+
Please keep in mind that CodeceptJS have **unified API** for Playwright, WebDriverIO, Appium, Puppeteer, TestCafe. Tests written using those helpers should be compatible at syntax level. However, some helpers may contain unique methods. That happens. If, for instance, WebDriverIO has method XXX and Playwright doesn't, you can implement XXX inside Playwright using the same method signature.
*Whenever a new method or new behavior is added it should be documented in a docblock. Valid JS-example is required! Do **not edit**`docs/helpers/`, those files are generated from docblocks in corresponding helpers! *
47
47
@@ -61,7 +61,6 @@ Execute test suite:
61
61
```sh
62
62
mocha test/helper/WebDriver_test.js
63
63
mocha test/helper/Puppeteer_test.js
64
-
mocha test/helper/Nightmare_test.js
65
64
```
66
65
67
66
Use `--grep` to execute tests only for changed parts.
@@ -187,11 +186,14 @@ docker-compose run --rm test-helpers test/rest
187
186
188
187
#### Run acceptance tests
189
188
189
+
<<<<<<< HEAD
190
+
To that we provide three separate services respectively for WebDriver, Puppeteer tests:
191
+
=======
190
192
To that we provide three separate services respectively for WebDriver, Nightmare and Puppeteer tests:
193
+
>>>>>>> 3.x
191
194
192
195
```sh
193
196
docker-compose run --rm test-acceptance.webdriverio
Copy file name to clipboardExpand all lines: README.md
-1
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,6 @@ CodeceptJS uses **Helper** modules to provide actions to `I` object. Currently,
44
44
*[**Puppeteer**](https://github.com/codeceptjs/CodeceptJS/blob/master/docs/helpers/Puppeteer.md) - uses Google Chrome's Puppeteer for fast headless testing.
45
45
*[**WebDriver**](https://github.com/codeceptjs/CodeceptJS/blob/master/docs/helpers/WebDriver.md) - uses [webdriverio](http://webdriver.io/) to run tests via WebDriver protocol.
46
46
*[**TestCafe**](https://github.com/codeceptjs/CodeceptJS/blob/master/docs/helpers/TestCafe.md) - cheap and fast cross-browser test automation.
47
-
*[**Nightmare**](https://github.com/codeceptjs/CodeceptJS/blob/master/docs/helpers/Nightmare.md) - uses Electron and NightmareJS to run tests.
48
47
*[**Appium**](https://github.com/codeceptjs/CodeceptJS/blob/master/docs/helpers/Appium.md) - for **mobile testing** with Appium
49
48
*[**Detox**](https://github.com/codeceptjs/CodeceptJS/blob/master/docs/helpers/Detox.md) - This is a wrapper on top of Detox library, aimed to unify testing experience for CodeceptJS framework. Detox provides a grey box testing for mobile applications, playing especially well for React Native apps.
You may run use `-v $(pwd)/:tests/` if running this from the root of your CodeceptJS tests directory.
82
82
_Note: The output of your test run will appear in your local directory if your output path is `./output` in the CodeceptJS config_
83
-
_Note: If running with the Nightmare driver, it is not necessary to run a selenium docker container and link it. So `--link selenium-chrome:selenium` may be omitted_
Copy file name to clipboardExpand all lines: docs/data.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ API is supposed to be a stable interface and it can be used by acceptance tests.
23
23
## REST
24
24
25
25
[REST helper](https://codecept.io/helpers/REST/) allows sending raw HTTP requests to application.
26
-
This is a tool to make shortcuts and create your data pragmatically via API. However, it doesn't provide tools for testing APIs, so it should be paired with WebDriver helper for browser testing.
26
+
This is a tool to make shortcuts and create your data pragmatically via API. However, it doesn't provide tools for testing APIs, so it should be paired with Playwright or WebDriver helper for browser testing.
27
27
28
28
Enable REST helper in the config. It is recommended to set `endpoint`, a base URL for all API requests. If you need some authorization you can optionally set default headers too.
[GraphQL helper](https://codecept.io/helpers/GraphQL/) allows sending GraphQL queries and mutations to application, over Http.
95
+
<<<<<<< HEAD
96
+
This is a tool to make shortcuts and create your data pragmatically via GraphQL endpoint. However, it doesn't provide tools for testing the endpoint, so it should be paired with WebDriver helper for browser testing.
97
+
=======
95
98
This is a tool to make shortcuts and create your data pragmatically via GraphQL endpoint. However, it doesn't provide tools for testing the endpoint, so it should be paired with WebDriver helpers for browser testing.
99
+
>>>>>>> 3.x
96
100
97
101
Enable GraphQL helper in the config. It is recommended to set `endpoint`, the URL to which the requests go to. If you need some authorization you can optionally set default headers too.
You may run use `-v $(pwd)/:tests/` if running this from the root of your CodeceptJS tests directory.
82
82
_Note: The output of your test run will appear in your local directory if your output path is `./output` in the CodeceptJS config_
83
-
_Note: If running with the Nightmare driver, it is not necessary to run a selenium docker container and link it. So `--link selenium-chrome:selenium` may be omitted_
0 commit comments