Skip to content

Commit 65686a2

Browse files
committed
preparing release
1 parent a663854 commit 65686a2

File tree

10 files changed

+162
-63
lines changed

10 files changed

+162
-63
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
## 2.1.4
2+
3+
* [WebDriver][Puppeteer][Protractor][Nightmare] A11y locator support introduced by @Holorium. Clickable elements as well as fields can be located by following attributes:
4+
* `aria-label`
5+
* `title`
6+
* `aria-labelledby`
7+
* [Puppeteer] Added support for React locators.
8+
* New [React Guide](https://codecept.io/react) added.
9+
* [Puppeteer] Deprecated `downloadFile`
10+
* [Puppeteer] Introduced `handleDownloads` replacing `downloadFile`
11+
* [puppeteerCoverage plugin] Fixed path already exists error by @seta-tuha.
12+
* Fixed 'ERROR: ENAMETOOLONG' creating directory names in `run-multiple` with long config. By @artvinn
13+
* [REST] Fixed url autocompletion combining base and relative paths by @LukoyanovE
14+
* [Nightmare][Protractor] `uncheckOption` method introduced by @PeterNgTr
15+
* [autoLogin plugin] Enable to use without `await` by @tsuemura
16+
* [Puppeteer] Fixed `UnhandledPromiseRejectionWarning: "Execution context was destroyed...` by @adrielcodeco
17+
* [WebDriver] Keep browser window dimensions when starting a new session by @spiroid
18+
* Replace Ghekrin plceholders with values in files that combine a scenerio outline and table by @medtoure18.
19+
* Added Documentation to [locate elements in React Native](https://codecept.io/react-native-locators) apps. By @DimGun.
20+
* Adding optional `path` parameter to `bdd:snippets` command to append snippets to a specific file. By @cthorsen31.
21+
* Added optional `output` parameter to `def` command by @LukoyanovE.
22+
* [Puppeteer] Added `grabDataFromPerformanceTiming` by @PeterNgTr.
23+
* axios updated to `0.19.0` by @SteveShaffer
24+
* TypeScript defitions updated by @LukoyanovE. Added `secret` and `inject` function.
25+
126
## 2.1.3
227

328
* Fixed autoLogin plugin to inject `login` function

RoboFile.php

Lines changed: 49 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@
77
class RoboFile extends \Robo\Tasks
88
{
99

10-
function docs()
10+
function docs() {
11+
$this->docsHelpers();
12+
$this->docsPlugins();
13+
}
14+
15+
function docsPlugins() {
16+
$this->_exec("npx documentation build lib/plugin/*.js -o docs/plugins.md -f md --shallow --markdown-toc=false --sort-order=alpha ");
17+
}
18+
19+
function docsHelpers()
1120
{
1221
$files = scandir('lib/helper');
1322

@@ -88,25 +97,47 @@ function wiki()
8897
->run();
8998

9099
$this->taskWriteToFile('docs/community-helpers.md')
91-
->line('---')
92-
->line('id: community-helpers')
93-
->line('title: Community Helpers')
94-
->line('---')
95-
->line('')
96-
->line('> Share your helpers at our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Community-Helpers)')
97-
->line('')
98-
->textFromFile('website/wiki/Community-Helpers.md')
99-
->run();
100+
->line('---')
101+
->line('id: community-helpers')
102+
->line('title: Community Helpers')
103+
->line('---')
104+
->line('')
105+
->line('> Share your helpers at our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Community-Helpers)')
106+
->line('')
107+
->textFromFile('website/wiki/Community-Helpers.md')
108+
->run();
100109

101110
$this->taskWriteToFile('docs/examples.md')
102-
->line('---')
103-
->line('id: examples')
104-
->line('title: Examples')
105-
->line('---')
106-
->line('')
107-
->line('> Add your own examples to our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Examples)')
108-
->textFromFile('website/wiki/Examples.md')
109-
->run();
111+
->line('---')
112+
->line('id: examples')
113+
->line('title: Examples')
114+
->line('---')
115+
->line('')
116+
->line('> Add your own examples to our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Examples)')
117+
->textFromFile('website/wiki/Examples.md')
118+
->run();
119+
120+
$this->taskWriteToFile('docs/books.md')
121+
->line('---')
122+
->line('id: books')
123+
->line('title: Books & Posts')
124+
->line('---')
125+
->line('')
126+
->line('> Add your own books or posts to our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Books-&-Posts)')
127+
->textFromFile('website/wiki/Books-&-Posts.md')
128+
->run();
129+
130+
$this->taskWriteToFile('docs/videos.md')
131+
->line('---')
132+
->line('id: videos')
133+
->line('title: Videos')
134+
->line('---')
135+
->line('')
136+
->line('> Add your own videos to our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Videos)')
137+
->textFromFile('website/wiki/Videos.md')
138+
->run();
139+
140+
110141
}
111142

112143
function testServer()

docs/books.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
id: books
3+
title: Books & Posts
4+
---
5+
6+
> Add your own books or posts to our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Books-&-Posts)
7+
### Practical End 2 End Testing with CodeceptJS
8+
9+
A book by **Paul Vincent Beigang**
10+
11+
[![](https://user-images.githubusercontent.com/220264/58870454-e2e8ce80-86c8-11e9-868e-7deefdde47ce.png)](https://leanpub.com/codeceptjs/)
12+
13+
#### Contents:
14+
15+
1. Preparation for End 2 End Testing with CodeceptJS
16+
1. Setup CodeceptJS with WebdriverIO
17+
1. Create Your First CodeceptJS Test
18+
1. Run Your First CodeceptJS Test Locally
19+
1. Run Test on BrowserStack Against with the Safari Browser
20+
1. How to Debug & Fix a Failing E2E Test
21+
1. Run a CodeceptJS Test in GitLab´s Continuous Integration (CI) Environment
22+
1. Delicious Test Reports With Allure
23+
24+
### Posts
25+
26+
A list of good educational posts about CodeceptJS
27+
28+
* [Effective End2End Tests with CodeceptJS](https://hackernoon.com/effective-end-2-end-testing-in-javascript-with-codeceptjs-37c8d7d6a928) by @davertmik
29+
* [Running End to End tests as Google Cloud Functions](https://hackernoon.com/running-end-to-end-tests-as-google-cloud-functions-f5e34ffc3984)
30+
* [End-To-End Testing With CodeceptJS](https://www.monterail.com/blog/end-to-end-testing-with-codeceptjs) by Piotr Michalski
31+
* [Getting started with CodeceptJS and Selenium WebDriver](https://medium.com/@garrettvorce/getting-started-with-selenium-and-codeceptjs-c0698e8df677)

docs/examples.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ title: Examples
99
CodeceptJS repo contains basic tests (both failing and passing) just to show how it works.
1010
Our team uses it to test new features and run simple scenarios.
1111

12-
## [CodeceptJS Quick Start with Cucumber/Gherkin](https://github.com/gkushang/codeceptjs-quick-start)
13-
14-
This repository demonstrate the CodeceptJS with Cucumber/Gherkin configuration
15-
16-
* Easy 3-Steps process to colocate the CodeceptJS with Gherkin tests with your project
17-
* Quick Start with CodeceptJS wih Cucumber/Gherkin
18-
* Sample example and feature files to test GitHub Features
1912

2013
## [Testing Single Page Application](https://github.com/bugiratracker/codeceptjs-demo)
2114

@@ -40,6 +33,14 @@ This repository demonstrates usage of:
4033
* testing WYSIWYG editor
4134
* GitLab CI
4235

36+
## [Quick Start with Cucumber/Gherkin](https://github.com/gkushang/codeceptjs-quick-start)
37+
38+
This repository demonstrates the CodeceptJS with Cucumber/Gherkin configuration
39+
40+
* Easy 3-Steps process to colocate the CodeceptJS with Gherkin tests with your project
41+
* Quick Start with CodeceptJS wih Cucumber/Gherkin
42+
* Sample example and feature files to test GitHub Features
43+
4344
## [Amazon Tests v2](https://gitlab.com/thanhnguyendh/codeceptjs-wdio-services)
4445

4546
Testing Amazon website using Selenium WebDriver.
@@ -100,3 +101,11 @@ This repository demonstrates usage of
100101
This repository demonstrates usage of
101102

102103
* REST helper
104+
105+
## [Automation Starter](https://github.com/sjorrillo/automation-starter)
106+
107+
The purpose of this application is for learning the basics and how to use good practices and useful tools in automation.
108+
109+
* Puppeteer helper
110+
* Working with gherkin, also it has type definitions and to be able to use them inside when, given and then make sure you add `declare function inject(): { I: CodeceptJS.I, [key: string]: any; };`in the `steps.d.ts`file
111+
* Linting `airbnb-base`, `codeceptjs/codeceptjs` and full ES6 support

docs/plugins.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
id: plugins
3-
title: Plugins
4-
---
51
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
62

73
## allure
@@ -54,6 +50,12 @@ const allure = codeceptjs.container.plugins('allure');
5450

5551
- `addAttachment(name, buffer, type)` - add an attachment to current test / suite
5652
- `addLabel(name, value)` - adds a label to current test
53+
- `severity(value)` - adds severity label
54+
- `epic(value)` - adds epic label
55+
- `feature(value)` - adds feature label
56+
- `story(value)` - adds story label
57+
- `issue(value)` - adds issue label
58+
- `setDescription(description, type)` - sets a description
5759

5860
### Parameters
5961

docs/video.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/videos.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
id: videos
3+
title: Videos
4+
---
5+
6+
> Add your own videos to our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Videos)
7+
## [Introductory Videos](https://www.youtube.com/watch?v=FPFG1rBNJ64&list=PLcFXthgti9Lt4SjSvL1ALDg6dOeTC0TvT)
8+
9+
Free educational videos provided by our community member **[@ontytoom](http://github.com/ontytoom)**.
10+
11+
1. [Installation](https://www.youtube.com/watch?v=FPFG1rBNJ64)
12+
1. [Creating a Test](https://www.youtube.com/watch?v=mdQZjL3h9d0)
13+
1. [Using Page Objects](https://www.youtube.com/watch?v=s677_6VctjQ)
14+
15+
## [Practical E2E Testing with CodeceptJS](https://www.udemy.com/practical-e2e-testing-with-codeceptjs/)
16+
17+
Udemy course by Luke Beilharz
18+
19+

lib/plugin/allure.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ const defaultConfig = {
6161
*
6262
* * `addAttachment(name, buffer, type)` - add an attachment to current test / suite
6363
* * `addLabel(name, value)` - adds a label to current test
64+
* * `severity(value)` - adds severity label
65+
* * `epic(value)` - adds epic label
66+
* * `feature(value)` - adds feature label
67+
* * `story(value)` - adds story label
68+
* * `issue(value)` - adds issue label
69+
* * `setDescription(description, type)` - sets a description
6470
*
6571
*/
6672
module.exports = (config) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeceptjs",
3-
"version": "2.1.3",
3+
"version": "2.1.4",
44
"description": "Modern Era Acceptance Testing Framework for NodeJS",
55
"keywords": [
66
"acceptance",

website/sidebars.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"docs": {
33
"Quickstart": [
4-
"quickstart",
5-
"basics",
6-
"video",
4+
"quickstart"
5+
],
6+
"Tutorials": [
7+
"books",
8+
"videos",
79
"examples"
810
],
911
"Web Testing": [
@@ -37,8 +39,7 @@
3739
"plugins",
3840
"docker",
3941
"reports",
40-
"translation",
41-
"community-helpers"
42+
"translation"
4243
],
4344
"Driver Helpers": [
4445
"helpers/WebDriver",
@@ -47,10 +48,11 @@
4748
"helpers/Nightmare",
4849
"helpers/Appium"
4950
],
50-
"Data Helpers": [
51+
"Additional Helpers": [
5152
"helpers/REST",
5253
"helpers/ApiDataFactory",
53-
"helpers/FileSystem"
54+
"helpers/FileSystem",
55+
"community-helpers"
5456
]
5557
}
5658
}

0 commit comments

Comments
 (0)