Skip to content

Commit fe8570f

Browse files
committedAug 6, 2021
added badges, readme, deprecated Protractor
1 parent 5410f0b commit fe8570f

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed
 

‎README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
[<img src="https://img.shields.io/badge/slack-@codeceptjs-purple.svg?logo=slack">](https://join.slack.com/t/codeceptjs/shared_invite/enQtMzA5OTM4NDM2MzA4LWE4MThhN2NmYTgxNTU5MTc4YzAyYWMwY2JkMmZlYWI5MWQ2MDM5MmRmYzZmYmNiNmY5NTAzM2EwMGIwOTNhOGQ) [<img src="https://img.shields.io/badge/discourse-codeceptjs-purple">](https://codecept.discourse.group) [![NPM version][npm-image]][npm-url] [![Build Status](https://travis-ci.org/Codeception/CodeceptJS.svg?branch=master)](https://travis-ci.org/Codeception/CodeceptJS) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/1823c38c74e44724b5555e3641f72621)](https://www.codacy.com/app/DavertMik/CodeceptJS?utm_source=github.com&utm_medium=referral&utm_content=Codeception/CodeceptJS&utm_campaign=badger) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
1+
[<img src="https://img.shields.io/badge/slack-@codeceptjs-purple.svg?logo=slack">](https://join.slack.com/t/codeceptjs/shared_invite/enQtMzA5OTM4NDM2MzA4LWE4MThhN2NmYTgxNTU5MTc4YzAyYWMwY2JkMmZlYWI5MWQ2MDM5MmRmYzZmYmNiNmY5NTAzM2EwMGIwOTNhOGQ) [<img src="https://img.shields.io/badge/discourse-codeceptjs-purple">](https://codecept.discourse.group) [![NPM version][npm-image]][npm-url]
2+
3+
Build Status:
4+
5+
[![Playwright Tests](https://github.com/codeceptjs/CodeceptJS/actions/workflows/playwright.yml/badge.svg)](https://github.com/codeceptjs/CodeceptJS/actions/workflows/playwright.yml)
6+
[![Puppeteer Tests](https://github.com/codeceptjs/CodeceptJS/actions/workflows/puppeteer.yml/badge.svg)](https://github.com/codeceptjs/CodeceptJS/actions/workflows/puppeteer.yml)
7+
[![WebDriver Tests](https://github.com/codeceptjs/CodeceptJS/actions/workflows/webdriver.yml/badge.svg)](https://github.com/codeceptjs/CodeceptJS/actions/workflows/webdriver.yml)
8+
[![Appium Tests](https://github.com/codeceptjs/CodeceptJS/actions/workflows/appium.yml/badge.svg)](https://github.com/codeceptjs/CodeceptJS/actions/workflows/appium.yml)
9+
[![TestCafe Tests](https://github.com/codeceptjs/CodeceptJS/actions/workflows/testcafe.yml/badge.svg)](https://github.com/codeceptjs/CodeceptJS/actions/workflows/testcafe.yml)
210

311
# CodeceptJS
412

‎docs/playwright.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ permalink: /playwright
33
title: Testing with Playwright
44
---
55

6-
# Testing with Playwright <Badge text="Since 2.5" type="warning"/>
6+
# Testing with Playwright
77

88
Playwright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers as well as [Electron](https://www.electronjs.org/) apps with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.
99

@@ -353,7 +353,7 @@ I.usePlaywrightTo('emulate offline mode', async (Playwright) => {
353353
354354
```
355355

356-
## Mocking Network Requests
356+
## Mocking Network Requests <Badge text="Since 3.1" type="warning"/>
357357

358358
Network requests & responses can be mocked and modified. Use `mockRequest` which strictly follows [Playwright's `route` API](https://playwright.dev/docs/api/class-browsercontext#browser-context-route).
359359

@@ -374,7 +374,7 @@ I.stopMockingRoute('**/*.{png,jpg,jpeg}'
374374

375375
To master request intercepting [use `route` object](https://playwright.dev/docs/api/class-route) object passed into mock request handler.
376376

377-
## Video
377+
## Video <Badge text="Since 3.1" type="warning"/>
378378

379379
Playwright may record videos for failed tests. This can be enabled in a config with `video: true` option:
380380

@@ -406,7 +406,7 @@ When a test fails and video was enabled a video file is shown under the `artifac
406406

407407
Open video and use it to debug a failed test case. Video helps when running tests on CI. Configure your CI system to enable artifacts storage for `output/video` and review videos of failed test case to understand failures.
408408

409-
## Trace
409+
## Trace <Badge text="Since 3.1" type="warning"/>
410410

411411
If video is not enough to descover why a test failed a [trace](https://playwright.dev/docs/trace-viewer/) can be recorded.
412412

‎lib/helper/Protractor.js

+2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ class Protractor extends Helper {
124124

125125
this.isRunning = false;
126126
this._setConfig(config);
127+
128+
console.log('Protractor helper is deprecated as well as Protractor itself.\nThis helper will be removed in next major release');
127129
}
128130

129131
_validateConfig(config) {

0 commit comments

Comments
 (0)
Please sign in to comment.