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
* updated docs
* release 2.6.5
* Fix valid data output (w3) (#2399)
* add alt for image UI page (fix w3 validator) (#2403)
* docs: fix typo in commands.md (#2405)
* remove unnecessary select placeholder from basics.md (#2407)
* fix display combination in changelog (#2409)
* add description to images (#2412)
* Fix android native locator support for appium helper (#2429)
* Update mobile.md
* Fix android native locator support for appium helper
* update the expected result for windows platform especially the absolute path case because in windows, path.resolve returns driver letter
* chore: jsdoc color param optional in `I.say` (#2443)
* update github links after repository migration (#2447)
* Fixed waitNumberOfVisibleElements for Webdriver (#2418)
* fix waitNumberOfVisibleElements
waitNumberOfVisibleElements returns false everytime as it does not filter the visible element count
* fix waitNumberOfVisibleElements
waitNumberOfVisibleElements returns false everytime as it does not filter for visible elements
* Issue 2434 (handle .indexOf error) (#2436)
* Makes suggested changes to have Chromium install
* fixes#2434
* fix playwright too
Co-authored-by: George Griffiths <[email protected]>
* Puppeteer handle page error (#2435)
* Makes suggested changes to have Chromium install
* handle page crash
* handle undefined page
* dont open new tab on crash
* remove old try catch
Co-authored-by: George Griffiths <[email protected]>
* Feat: Skip feature (#2427)
* Makes suggested changes to have Chromium install
* feat: implement skip of features
* Add unit tests, docs and type defs
* Apply suggestions from code review
Co-authored-by: George Griffiths <[email protected]>
Co-authored-by: Michael Bodnarchuk <[email protected]>
* Release 2.6.6 (#2450)
* updated docs
* fixed tests & updated linter
* updated changelog
* fixed mocks
Co-authored-by: Davert <[email protected]>
Co-authored-by: Mykhailo Bodnarchuk <[email protected]>
Co-authored-by: Ihor Sychevskyi <[email protected]>
Co-authored-by: Aleksei Gurianov <[email protected]>
Co-authored-by: Tanakiat Srisaranyakul <[email protected]>
Co-authored-by: Bartosz Wojtkowiak <[email protected]>
Co-authored-by: Vijay Venkatesh <[email protected]>
Co-authored-by: George Griffiths <[email protected]>
Co-authored-by: George Griffiths <[email protected]>
Co-authored-by: Michael Bodnarchuk <[email protected]>
Copy file name to clipboardExpand all lines: docs/basics.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -297,7 +297,7 @@ Tests are written in a synchronous way. This improves the readability and mainta
297
297
While writing tests you should not think about promises, and instead should focus on the test scenario.
298
298
299
299
However, behind the scenes **all actions are wrapped in promises**, inside of the `I` object.
300
-
[Global promise](https://github.com/Codeception/CodeceptJS/blob/master/lib/recorder.js) chain is initialized before each test and all `I.*` calls will be appended to it, as well as setup and teardown.
300
+
[Global promise](https://github.com/codecept-js/CodeceptJS/blob/master/lib/recorder.js) chain is initialized before each test and all `I.*` calls will be appended to it, as well as setup and teardown.
301
301
302
302
> 📺 [Learn how CodeceptJS](https://www.youtube.com/watch?v=MDLLpHAwy_s) works with promises by watching video on YouTube
303
303
@@ -617,7 +617,7 @@ AfterSuite((I) => {
617
617
});
618
618
```
619
619
620
-
[Here are some ideas](https://github.com/Codeception/CodeceptJS/pull/231#issuecomment-249554933) on where to use BeforeSuite hooks.
620
+
[Here are some ideas](https://github.com/codecept-js/CodeceptJS/pull/231#issuecomment-249554933) on where to use BeforeSuite hooks.
621
621
622
622
## Within
623
623
@@ -798,7 +798,11 @@ Also, you can use `within` inside a session, but you can't call session from ins
798
798
Like in Mocha you can use `x` and `only` to skip tests or to run a single test.
799
799
800
800
* `xScenario` - skips current test
801
+
* `Scenario.skip` - skips current test
801
802
* `Scenario.only` - executes only the current test
803
+
* `xFeature` - skips current suite <Badge text="Since 2.6.6" type="warning"/>
804
+
* `Feature.skip` - skips the current suite <Badge text="Since 2.6.6" type="warning"/>
805
+
802
806
803
807
## Todo Test <Badge text="Since 2.4" type="warning"/>
Copy file name to clipboardExpand all lines: docs/hooks.md
+14-14
Original file line number
Diff line number
Diff line change
@@ -240,7 +240,7 @@ module.exports = {
240
240
241
241
Plugins allow to use CodeceptJS internal API to extend functionality. Use internal event dispatcher, container, output, promise recorder, to create your own reporters, test listeners, etc.
242
242
243
-
CodeceptJS includes [built-in plugins](/plugins/) which extend basic functionality and can be turned on and off on purpose. Taking them as [examples](https://github.com/Codeception/CodeceptJS/tree/master/lib/plugin) you can develop your custom plugins.
243
+
CodeceptJS includes [built-in plugins](/plugins/) which extend basic functionality and can be turned on and off on purpose. Taking them as [examples](https://github.com/codecept-js/CodeceptJS/tree/master/lib/plugin) you can develop your custom plugins.
244
244
245
245
A plugin is a basic JS module returning a function. Plugins can have individual configs which are passed into this function:
Plugin can register event listeners or hook into promise chain with recorder. See [API reference](https://github.com/Codeception/CodeceptJS/tree/master/lib/helper).
258
+
Plugin can register event listeners or hook into promise chain with recorder. See [API reference](https://github.com/codecept-js/CodeceptJS/tree/master/lib/helper).
259
259
260
260
To enable your custom plugin in config add it to `plugins` section. Specify path to node module using `require`.
*[`container`](https://github.com/Codeception/CodeceptJS/blob/master/lib/container.js): dependency injection container for tests, includes current helpers and support objects
341
-
*[`helper`](https://github.com/Codeception/CodeceptJS/blob/master/lib/helper.js): basic helper class
342
-
*[`actor`](https://github.com/Codeception/CodeceptJS/blob/master/lib/actor.js): basic actor (I) class
335
+
*[`codecept`](https://github.com/codecept-js/CodeceptJS/blob/master/lib/codecept.js): test runner class
336
+
*[`config`](https://github.com/codecept-js/CodeceptJS/blob/master/lib/config.js): current codecept config
*[`container`](https://github.com/codecept-js/CodeceptJS/blob/master/lib/container.js): dependency injection container for tests, includes current helpers and support objects
341
+
*[`helper`](https://github.com/codecept-js/CodeceptJS/blob/master/lib/helper.js): basic helper class
342
+
*[`actor`](https://github.com/codecept-js/CodeceptJS/blob/master/lib/actor.js): basic actor (I) class
343
343
344
-
[API reference](https://github.com/Codeception/CodeceptJS/tree/master/docs/api) is available on GitHub.
344
+
[API reference](https://github.com/codecept-js/CodeceptJS/tree/master/docs/api) is available on GitHub.
345
345
Also please check the source code of corresponding modules.
346
346
347
347
### Event Listeners
348
348
349
-
CodeceptJS provides a module with [event dispatcher and set of predefined events](https://github.com/Codeception/CodeceptJS/blob/master/lib/event.js).
349
+
CodeceptJS provides a module with [event dispatcher and set of predefined events](https://github.com/codecept-js/CodeceptJS/blob/master/lib/event.js).
350
350
351
351
It can be required from codeceptjs package if it is installed locally.
352
352
@@ -389,7 +389,7 @@ Available events:
389
389
**sync* - means that event is fired in the moment of action happens.
390
390
**async* - means that event is fired when an actions is scheduled. Use `recorder` to schedule your actions.
391
391
392
-
For further reference look for [currently available listeners](https://github.com/Codeception/CodeceptJS/tree/master/lib/listener) using event system.
392
+
For further reference look for [currently available listeners](https://github.com/codecept-js/CodeceptJS/tree/master/lib/listener) using event system.
393
393
394
394
#### Test Object
395
395
@@ -421,7 +421,7 @@ Step events provide step objects with following fields:
421
421
422
422
### Recorder
423
423
424
-
To inject asynchronous functions in a test or before/after a test you can subscribe to corresponding event and register a function inside a recorder object. [Recorder](https://github.com/Codeception/CodeceptJS/blob/master/lib/recorder.js) represents a global promises chain.
424
+
To inject asynchronous functions in a test or before/after a test you can subscribe to corresponding event and register a function inside a recorder object. [Recorder](https://github.com/codecept-js/CodeceptJS/blob/master/lib/recorder.js) represents a global promises chain.
425
425
426
426
Provide a function description as a first parameter, function should return a promise:
0 commit comments