Skip to content

Commit 64598bc

Browse files
committed
fixed whitespacs, updaetd docs
1 parent dcb85e9 commit 64598bc

File tree

4 files changed

+163
-94
lines changed

4 files changed

+163
-94
lines changed

docs/changelog.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,81 @@ layout: Section
77

88
# Releases
99

10+
## 3.3.5
11+
12+
🛩️ Features
13+
14+
* Added **[TypeScript option](/typescript)** for installation via `codeceptjs init` to initialize new projects in TS (by **[PeterNgTr](https://github.com/PeterNgTr)** and **[davertmik](https://github.com/davertmik)**)
15+
* Include `node-ts` automatically when using TypeScript setup
16+
* Added TS types for CodeceptJS config. Update `codecept.conf.js` to get intellisense when writing config file:
17+
18+
```js
19+
// inside codecept.conf.js
20+
/** **[type](https://github.com/type)** {CodeceptJS.MainConfig} */
21+
exports.config = {
22+
//...
23+
}
24+
```
25+
* Added TS types for helpers config:
26+
* Playwright
27+
* Puppeteer
28+
* WebDriver
29+
* REST
30+
31+
🐛 Bugfixes
32+
33+
* **[Puppeteer]** Fixed support for Puppeteer > 14.4 by **[PeterNgTr](https://github.com/PeterNgTr)**
34+
* Don't report files as existing when non-directory is in path by **[jonathanperret](https://github.com/jonathanperret)**. See [#3374](https://github.com/codeceptjs/CodeceptJS/issues/3374)
35+
* Fixed TS type for `secret` function by **[PeterNgTr](https://github.com/PeterNgTr)**
36+
* Fixed wrong order for async MetaSteps by **[dwentland24](https://github.com/dwentland24)**. See [#3393](https://github.com/codeceptjs/CodeceptJS/issues/3393)
37+
* Fixed same param substitution in BDD step. See [#3385](https://github.com/codeceptjs/CodeceptJS/issues/3385) by **[snehabhandge](https://github.com/snehabhandge)**
38+
39+
📖 Documentation
40+
41+
* Updated [configuration options](https://codecept.io/configuration/) to match TypeScript types
42+
* Updated [TypeScript documentation](https://codecept.io/typescript/) on simplifying TS installation
43+
* Added codecept-tesults plugin documentation by **[ajeetd](https://github.com/ajeetd)**
44+
45+
46+
47+
## 3.3.4
48+
49+
* Added support for masking fields in objects via `secret` function:
50+
51+
```js
52+
I.sendPostRequest('/auth', secret({ name: 'jon', password: '123456' }, 'password'));
53+
```
54+
* Added [a guide about using of `secret`](/secrets) function
55+
* **[Appium]** Use `touchClick` when interacting with elements in iOS. See [#3317](https://github.com/codeceptjs/CodeceptJS/issues/3317) by **[mikk150](https://github.com/mikk150)**
56+
* **[Playwright]** Added `cdpConnection` option to connect over CDP. See [#3309](https://github.com/codeceptjs/CodeceptJS/issues/3309) by **[Hmihaly](https://github.com/Hmihaly)**
57+
* [customLocator plugin] Allowed to specify multiple attributes for custom locator. Thanks to **[aruiz-caritsqa](https://github.com/aruiz-caritsqa)**
58+
59+
```js
60+
plugins: {
61+
customLocator: {
62+
enabled: true,
63+
prefix: '$',
64+
attribute: ['data-qa', 'data-test'],
65+
}
66+
}
67+
```
68+
* [retryTo plugin] Fixed [#3147](https://github.com/codeceptjs/CodeceptJS/issues/3147) using `pollInterval` option. See [#3351](https://github.com/codeceptjs/CodeceptJS/issues/3351) by **[cyonkee](https://github.com/cyonkee)**
69+
* **[Playwright]** Fixed grabbing of browser console messages and window resize in new tab. Thanks to **[mirao](https://github.com/mirao)**
70+
* **[REST]** Added `prettyPrintJson` option to print JSON in nice way by **[PeterNgTr](https://github.com/PeterNgTr)**
71+
* **[JSONResponse]** Updated response validation to iterate over array items if response is array. Thanks to **[PeterNgTr](https://github.com/PeterNgTr)**
72+
73+
```js
74+
// response.data == [
75+
// { user: { name: 'jon', email: 'jon@doe.com' } },
76+
// { user: { name: 'matt', email: 'matt@doe.com' } },
77+
//]
78+
79+
I.seeResponseContainsKeys(['user']);
80+
I.seeResponseContainsJson({ user: { email: 'jon@doe.com' } });
81+
I.seeResponseContainsJson({ user: { email: 'matt@doe.com' } });
82+
I.dontSeeResponseContainsJson({ user: 2 });
83+
```
84+
1085
## 3.3.3
1186

1287
* Fixed `DataCloneError: () => could not be cloned` when running data tests in run-workers

docs/community-helpers.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ editLink: false
99
1010
Here is the list of helpers created by our community.
1111
Please **add your own** by editing this page.
12+
## Webhooks
13+
14+
* [codeceptjs-webhook-helper](https://github.com/onemolegames/codeceptjs-webhook-helper) - to check webhook calls during the tests.
1215

1316
## Email Checking
1417

1518
* [MailCatcher](https://gist.github.com/schmkr/026732dfa1627b927ff3a08dc31ee884) - to check emails via Mailcatcher locally.
1619
* [codeceptjs-mailhog-helper](https://github.com/tsuemura/codeceptjs-mailhog-helper) - to check emails via Mailhog locally.
20+
* [codeceptjs-testmailapp-helper](https://github.com/pavkam/codeceptjs-testmailapp-helper) - to check emails via Testmail.app service.
21+
* [codeceptjs-mailosaurhelper](https://github.com/yurkovychv/codeceptjs-mailosaur) - to check emails via [Mailosaur](https://mailosaur.com/) service.
1722

1823
## Data Sources
1924

@@ -32,15 +37,13 @@ Please **add your own** by editing this page.
3237
## Visual-Testing
3338
* [codeceptjs-resemblehelper](https://github.com/puneet0191/codeceptjs-resemblehelper) - a helper which helps with visual testing using resemble.js.
3439
* [codeceptjs-applitoolshelper](https://www.npmjs.com/package/codeceptjs-applitoolshelper) - a helper which helps interaction with [Applitools](https://applitools.com)
40+
* [codeceptjs-pixelmatchhelper](https://github.com/stracker-phil/codeceptjs-pixelmatchhelper) - a helper that integrates pixelmatch for visual testing.
3541

3642
## Reporters
3743
* [codeceptjs-rphelper](https://github.com/reportportal/agent-js-codecept) is a CodeceptJS helper which can publish tests results on ReportPortal after execution.
3844
* [codeceptjs-xray-helper](https://www.npmjs.com/package/codeceptjs-xray-helper) is a CodeceptJS helper which can publish tests results on [XRAY](https://confluence.xpand-it.com/display/XRAYCLOUD/Import+Execution+Results+-+REST).
3945
* [codeceptjs-slack-reporter](https://www.npmjs.com/package/codeceptjs-slack-reporter) Get a Slack notification when one or more scenarios fail.
40-
* [codeceptjs-tesults](https://www.npmjs.com/package/codeceptjs-tesults) Report test results data from CodeceptJS to Tesults with this plugin.
41-
42-
## Page Object Code Generator
43-
* [codeceptjs-CodeGenerator](https://github.com/senthillkumar/CodeCeptJS-PageObject) is a CodeceptJS custom wrapper which can create page class with action methods from the page object file(JSON) and project setup(Folder Structure).
46+
* [codeceptjs-browserlogs-plugin](https://github.com/pavkam/codeceptjs-browserlogs-plugin) Record the browser logs for failed tests.
4447

4548
## Browser request control
4649
* [codeceptjs-resources-check](https://github.com/luarmr/codeceptjs-resources-check) Load a URL with Puppeteer and listen to the requests while the page is loading. Enabling count the number or check the sizes of the requests.

docs/examples.md

Lines changed: 39 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,35 @@ CodeceptJS repo contains basic tests (both failing and passing) just to show how
2929
Our team uses it to test new features and run simple scenarios.
3030

3131

32-
## [Testing Single Page Application](https://github.com/bugiratracker/codeceptjs-demo)
32+
## [CodeceptJS Cucumber E2E Framework](https://github.com/gkushang/codeceptjs-e2e)
3333

34-
![](https://user-images.githubusercontent.com/220264/56353972-56975080-61db-11e9-8b23-06e8b4620995.png)
34+
This repository contains complete E2E framework for CodeceptJS with Cucumber and SauceLabs Integration
3535

36-
End 2 end tests for [Bugira Bugtracker](https://bugira.com) app built with Rails & EmberJS. Bugira is a SaaS application that helps collecting users' feedbacks and transforming them into professional bug reports.
36+
* CodecepJS-Cucumber E2E Framework
37+
* Saucelabs Integration
38+
* Run Cross Browser tests in Parallel on SauceLabs with a simple command
39+
* Run tests on `chrome:headless`
40+
* Page Objects
41+
* `Should.js` Assertion Library
42+
* Uses `wdio` service (selenium-standalone, sauce)
43+
* Allure HTML Reports
44+
* Uses shared Master configuration
45+
* Sample example and feature files of GitHub Features
46+
47+
## [Enterprise Grade Tests](https://github.com/uc-cdis/gen3-qa)
48+
49+
Complex testing solution by [Gen3](https://github.com/uc-cdis/gen3-qa)
50+
51+
Includes
52+
53+
* classical CodeceptJS tests
54+
* BDD tests
55+
* Jenkins integration
56+
* Complex Before/BeforeSuite scripts and more
57+
58+
## [Testing Single Page Application](https://github.com/bugiratracker/codeceptjs-demo)
59+
60+
End 2 end tests for Task management app (currently offline).
3761

3862
Tests repository demonstrate usage of
3963

@@ -52,21 +76,6 @@ This repository demonstrates usage of:
5276
* testing WYSIWYG editor
5377
* GitLab CI
5478

55-
## [CodeceptJS Cucumber E2E Framework](https://github.com/gkushang/codeceptjs-e2e)
56-
57-
This repository contains complete E2E framework for CodeceptJS with Cucumber and SauceLabs Integration
58-
59-
* CodecepJS-Cucumber E2E Framework
60-
* Saucelabs Integration
61-
* Run Cross Browser tests in Parallel on SauceLabs with a simple command
62-
* Run tests on `chrome:headless`
63-
* Page Objects
64-
* `Should.js` Assertion Library
65-
* Uses `wdio` service (selenium-standalone, sauce)
66-
* Allure HTML Reports
67-
* Uses shared Master configuration
68-
* Sample example and feature files of GitHub Features
69-
7079
## [Amazon Tests v2](https://gitlab.com/thanhnguyendh/codeceptjs-wdio-services)
7180

7281
Testing Amazon website using Selenium WebDriver.
@@ -79,17 +88,6 @@ This repository demonstrates usage of:
7988
* Parallel execution
8089
* GitLab CI setup
8190

82-
## [Amazon Tests v1](https://github.com/PeterNgTr/amazon-ui-tests)
83-
84-
Previous version of Amazon Tests, still valid but quite different.
85-
86-
This repository demonstrates usage of:
87-
88-
* WebDriver helper
89-
* Page Objects
90-
* Bootstrap and teardown
91-
* Parallel execution
92-
9391
## [Tests with Docker Compose](https://github.com/mathesouza/codeceptjs-docker-compose)
9492

9593
Running CodeceptJS tests with Docker Compose
@@ -101,17 +99,6 @@ This repository demonstrates usage of:
10199
* Allure plugin
102100

103101

104-
## [ModusCreate Tests](https://github.com/ModusCreateOrg/codeceptjs-nightmare-harness)
105-
106-
Test automation by ModusCreate agency with NightmareJS.
107-
108-
This repository demonstrates usage of:
109-
110-
* Nightmare helper
111-
* Reports with Mochawesome
112-
* Docker
113-
* Page objects and page fragments
114-
115102
## [AngularJS Example Tests](https://github.com/armno/angular-e2e-codeceptjs-example)
116103

117104
Based on [Setting up End-to-End Testing in Angular Project with CodeceptJS](https://medium.com/@armno/setting-up-end-to-end-testing-in-angular-project-with-codeceptjs-ac1784de3420) post by Armno Prommarak.
@@ -147,12 +134,16 @@ This is a ready to use example that shows how to integrate CodeceptJS with Puppe
147134
* examples for sequential and parallel execution
148135
* generation of allure test results
149136

150-
## [Framework with UI and API test support : CodeceptJS , Puppeteer , REST , ESLint](https://github.com/avighub/CodeceptJS-puppeteer)
151-
This is a basic framework with Puppeteer , REST helpers which can support both UI and API actions within same test.
152-
More improvements and features will be added and will be updated.
153-
Suggestions and improvements are welcome , please raise a ticket in Issue tab.
137+
## [Example for Advanced REST API testing: TypeScript, Axios, CodeceptJS, Jest Expect, Docker, Allure, Mock-Server, Prettier + Eslint, pre-commit, Jest Unit Tests ](https://github.com/EgorBodnar/rest-axios-codeceptjs-allure-docker-test-example)
138+
One button example with built-in mocked backend.
139+
140+
If you already have a UI testing solution based on the CodeceptJS and you need to implement advanced REST API testing you can just extend your existing framework. Use this implementation as an example.
141+
This is necessary if all integrations with TMS and CI/CD are already configured, and you do not want to reconnect and configure the plugins and libraries used for the new test runner. Use CodeceptJS!
154142

155-
* Step by step setup in README
156-
* Two helpers are added. UI - Puppeteer , API - REST and chai-codeceptJS for assetion
157-
* ESLint for code check
158-
* Upcoming : API generic functions , Adaptor design pattern , More utilities
143+
* Easy run
144+
* Detailed README
145+
* Well documented mocked backend's REST API endpoints
146+
* HTTP request client with session support and unit tests
147+
* Exemplary code control
148+
* Ready to launch in a CI/CD system as is
149+
* OOP, Test data models and builders, endpoint decorators

0 commit comments

Comments
 (0)