Skip to content

Commit b12d2d9

Browse files
committed
auto updated documentation
1 parent 26b8a03 commit b12d2d9

File tree

10 files changed

+49
-18
lines changed

10 files changed

+49
-18
lines changed

_includes/extensions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,18 @@ extensions:
8686

8787
* `delete_successful` (default: true) - delete screenshots for successfully passed tests (i.e. log only failed and errored tests).
8888
* `module` (default: WebDriver) - which module for screenshots to use. Set `AngularJS` if you want to use it with AngularJS module. Generally, the module should implement `Codeception\Lib\Interfaces\ScreenshotSaver` interface.
89+
* `ignore_steps` (default: []) - array of step names that should not be recorded, * wildcards supported
8990

9091

9192
#### Examples:
9293

9394
``` yaml
9495
extensions:
9596
enabled:
96-
Codeception\Extension\Recorder:
97+
- Codeception\Extension\Recorder:
9798
module: AngularJS # enable for Angular
9899
delete_successful: false # keep screenshots of successful tests
100+
ignore_steps: [have, grab*]
99101
```
100102

101103

changelog.markdown

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ title: Codeception Changelog
77

88
# Changelog
99

10+
#### 2.4.4
11+
12+
* Recently added `extends` property in the `codeception.yml` and `*.suite.yml` files now support absolute paths; by **[silverfire](https://github.com/silverfire)**
13+
* Fixed absolute paths handling on Windows in ParamLoader; by **[silverfire](https://github.com/silverfire)**
14+
* **[Yii2]** Refactored database connection handling by **[SamMousa](https://github.com/SamMousa)**. Database connections should now always be closed after tests no matter how you have opened them or who is holding references to them. See [#5045](https://github.com/Codeception/Codeception/issues/5045)
15+
* **[Symfony]** Email handling improved by **[mbohal](https://github.com/mbohal)**. Fixes [#5058](https://github.com/Codeception/Codeception/issues/5058).
16+
* Added optional argument `$expectedCount` to `seeEmailIsSent`
17+
* Added `dontSeeEmailIsSent`
18+
* [Recorder Extension] Added `ignore_steps` option to disable recording of specific steps. By **[sspat](https://github.com/sspat)**.
19+
* **[WebDriver]** Fixed "No Session Timeout" fatal error by **[davertmik](https://github.com/davertmik)**.
20+
* **[WebDriver]** Added ability to locate clickable element by its title. See [#5065](https://github.com/Codeception/Codeception/issues/5065) by **[gimler](https://github.com/gimler)**
21+
* **[Db]** Add `waitlock` config option for the database session to wait for lock in Oracle. By **[ashnazg](https://github.com/ashnazg)**. See [#5069](https://github.com/Codeception/Codeception/issues/5069)
22+
* **[REST]** Fixed `seeXmlResponseEquals` by **[Voziv](https://github.com/Voziv)**
23+
1024
#### 2.4.3
1125

1226
* [Create your own test formats](https://codeception.com/docs/07-AdvancedUsage#Formats) (e.g., Cept, Cest, ...); by **[mlambley](https://github.com/mlambley)**

docs/02-GettingStarted.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Codeception follows simple naming rules to make it easy to remember (as well as
2020
<?php
2121
$I->click('Login');
2222
$I->fillField('#input-username', 'John Dough');
23-
$i->pressKey('#input-remarks', 'foo');
23+
$I->pressKey('#input-remarks', 'foo');
2424

2525
{% endhighlight %}
2626
* **Assertions** always start with "see" or "dontSee". Examples:
@@ -29,9 +29,9 @@ Codeception follows simple naming rules to make it easy to remember (as well as
2929
<?php
3030
$I->see('Welcome');
3131
$I->seeInTitle('My Company');
32-
$i->seeElement('nav');
33-
$i->dontSeeElement('#error-message');
34-
$i->dontSeeInPageSource('<section class="foo">');
32+
$I->seeElement('nav');
33+
$I->dontSeeElement('#error-message');
34+
$I->dontSeeInPageSource('<section class="foo">');
3535

3636
{% endhighlight %}
3737
* **Grabbers** just *read* something from the page, but don't process it. The return value of those are meant to be saved as variables and used later. Example:

docs/modules/AngularJS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ $el = $module->_findClickable($topBar, 'Click Me');
151151

152152

153153
{% endhighlight %}
154-
* `param` $page WebDriver instance or an element to search within
154+
* `param RemoteWebDriver` $page WebDriver instance or an element to search within
155155
* `param` $link a link text or locator to click
156156
* `return` WebDriverElement
157157

docs/modules/Db.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ if you run into problems loading dumps and cleaning databases.
4444
* populate: false - whether the the dump should be loaded before the test suite is started
4545
* cleanup: false - whether the dump should be reloaded before each test
4646
* reconnect: false - whether the module should reconnect to the database before each test
47+
* waitlock: 0 - wait lock (in seconds) that the database session should use for DDL statements
4748
* ssl_key - path to the SSL key (MySQL specific, @see http://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-key)
4849
* ssl_cert - path to the SSL certificate (MySQL specific, @see http://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-cert)
4950
* ssl_ca - path to the SSL certificate authority (MySQL specific, @see http://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-ca)
@@ -60,6 +61,7 @@ if you run into problems loading dumps and cleaning databases.
6061
populate: true
6162
cleanup: true
6263
reconnect: true
64+
waitlock: 10
6365
ssl_key: '/path/to/client-key.pem'
6466
ssl_cert: '/path/to/client-cert.pem'
6567
ssl_ca: '/path/to/ca-cert.pem'

docs/modules/Doctrine2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ which will always return the NULL value.
164164
#### haveInRepository
165165

166166
Persists record into repository.
167-
This method crates an entity, and sets its properties directly (via reflection).
167+
This method creates an entity, and sets its properties directly (via reflection).
168168
Setters of entity won't be executed, but you can create almost any entity and save it to database.
169169
Returns id using `getId` of newly created entity.
170170

docs/modules/Laravel5.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ $I->dontSeeFormErrors();
631631

632632
{% endhighlight %}
633633

634-
* `return` bool
634+
* `return` void
635635

636636

637637
#### dontSeeInCurrentUrl
@@ -1197,8 +1197,9 @@ $user = $I->haveRecord('App\User', array('name' => 'Davert')); // returns Eloque
11971197
{% endhighlight %}
11981198

11991199
* `param string` $table
1200-
* `param array` $attributes
1201-
* `return` integer|EloquentModel
1200+
* `param array` $attributes
1201+
* `return` EloquentModel|int
1202+
@throws \RuntimeException
12021203
* `[Part]` orm
12031204

12041205

@@ -1473,7 +1474,7 @@ $I->seeFormHasErrors();
14731474

14741475
{% endhighlight %}
14751476

1476-
* `return` bool
1477+
* `return` void
14771478

14781479

14791480
#### seeInCurrentUrl

docs/modules/Symfony.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,13 @@ $I->dontSeeElement('input', ['value' => '123456']);
476476
* `param array` $attributes
477477

478478

479+
#### dontSeeEmailIsSent
480+
481+
Checks that no email was sent. This is an alias for seeEmailIsSent(0).
482+
483+
* `[Part]` email
484+
485+
479486
#### dontSeeInCurrentUrl
480487

481488
Checks that the current URI doesn't contain the given string.
@@ -1031,9 +1038,18 @@ $I->seeElement(['css' => 'form input'], ['name' => 'login']);
10311038

10321039
#### seeEmailIsSent
10331040

1034-
Checks if any email were sent by last request
1041+
Checks if the desired number of emails was sent.
1042+
If no argument is provided then at least one email must be sent to satisfy the check.
1043+
1044+
{% highlight php %}
1045+
1046+
<?php
1047+
$I->seeEmailIsSent(2);
1048+
?>
1049+
1050+
{% endhighlight %}
10351051

1036-
@throws \LogicException
1052+
* `param null|int` $expectedCount
10371053

10381054

10391055
#### seeInCurrentRoute

docs/modules/WebDriver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ $el = $module->_findClickable($topBar, 'Click Me');
364364

365365

366366
{% endhighlight %}
367-
* `param` $page WebDriver instance or an element to search within
367+
* `param RemoteWebDriver` $page WebDriver instance or an element to search within
368368
* `param` $link a link text or locator to click
369369
* `return` WebDriverElement
370370

docs/modules/Yii2.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,6 @@ $I->click(['link' => 'Login']);
405405
* `param` $context
406406

407407

408-
#### connectionOpenHandler
409-
__not documented__
410-
411-
412408
#### createAndSetCsrfCookie
413409

414410
This function creates the CSRF Cookie.

0 commit comments

Comments
 (0)