Skip to content

Commit 4ff3be5

Browse files
committed
Merge branch 'master' of github.com:Codeception/CodeceptJS
2 parents 2145558 + 0363a7a commit 4ff3be5

File tree

2 files changed

+38
-15
lines changed

2 files changed

+38
-15
lines changed

docs/examples.md

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,50 @@ title: Examples
44
---
55

66

7-
## Basic Examples
7+
## [Basic Examples](https://github.com/Codeception/CodeceptJS/tree/master/examples)
88

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-
> See tests https://github.com/Codeception/CodeceptJS/tree/master/examples
1312

14-
## Single Page Application Tests
13+
## [Testing Single Page Application](https://github.com/bugiratracker/codeceptjs-demo)
1514

1615
![](https://user-images.githubusercontent.com/220264/56353972-56975080-61db-11e9-8b23-06e8b4620995.png)
1716

1817
End 2 end tests for [Bugira Bugtracker](https://bugira.com) app built with Rails & EmberJS. Bugira is a SaaS application which helps to collect user feedback and transform it into professional bugreports.
1918

20-
> See tests https://github.com/bugiratracker/codeceptjs-demo
21-
22-
Tests repository demonstrates usage of
19+
Tests repository deomstrate usage of
2320

2421
* Puppeteer helper
2522
* ApiDataFactory helper
2623
* autoLogin plugin
2724
* Dynamic config with profiles
2825

26+
## [Practical E2E Tests](https://gitlab.com/paulvincent/codeceptjs-e2e-testing)
27+
28+
Examples from the book [Practical End 2 End Testing with CodeceptJS](https://leanpub.com/codeceptjs/) by **Paul Vincent Beigang**.
29+
30+
This repository demonstrates usage of:
31+
32+
* dynamic config with profiles
33+
* testing WYSIWYG editor
34+
* GitLab CI
2935

30-
## Amazon UI Tests
36+
## [Amazon Tests v2](https://gitlab.com/thanhnguyendh/codeceptjs-wdio-services)
3137

3238
Testing Amazon website using Selenium WebDriver.
3339

34-
> See tests https://github.com/PeterNgTr/amazon-ui-tests
40+
This repository demonstrates usage of:
41+
42+
* WebDriver helper
43+
* Page Objects
44+
* wdio services (selenium-standalone)
45+
* Parallel execution
46+
* GitLab CI setup
47+
48+
## [Amazon Tests v1](https://github.com/PeterNgTr/amazon-ui-tests)
49+
50+
Previous version of Amazon Tests, still valid but quite different.
3551

3652
This repository demonstrates usage of:
3753

@@ -40,11 +56,20 @@ This repository demonstrates usage of:
4056
* Bootstrap and teardown
4157
* Parallel execution
4258

43-
## ModusCreate Tests
59+
## [Tests with Docker Compose](https://github.com/mathesouza/codeceptjs-docker-compose)
60+
61+
Running CodeceptJS tests with Docker Compose
62+
63+
This repository demonstrates usage of:
64+
65+
* CodeceptJS Docker image
66+
* WebDriver helper
67+
* Allure plugin
4468

45-
Test automation by ModusCreate agency with NightmareJS.
4669

47-
> See tests https://github.com/ModusCreateOrg/codeceptjs-nightmare-harness
70+
## [ModusCreate Tests](https://github.com/ModusCreateOrg/codeceptjs-nightmare-harness)
71+
72+
Test automation by ModusCreate agency with NightmareJS.
4873

4974
This repository demonstrates usage of:
5075

@@ -53,12 +78,10 @@ This repository demonstrates usage of:
5378
* Docker
5479
* Page objects and page fragments
5580

56-
## AngularJS Example Tests
81+
## [AngularJS Example Tests](https://github.com/armno/angular-e2e-codeceptjs-example)
5782

5883
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.
5984

60-
> See tests https://github.com/armno/angular-e2e-codeceptjs-example
61-
6285
This repository demonstrates usage of
6386

6487
* Puppeteer helper

lib/helper/WebDriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ class WebDriver extends Helper {
13541354
assertElementExists(res);
13551355
const elem = usingFirstElement(res);
13561356
const elementId = getElementId(elem);
1357-
if (this.browser.isMobile) return this.browser.touchScroll(elementId, offsetX, offsetY);
1357+
if (this.browser.isMobile) return this.browser.touchScroll(offsetX, offsetY, elementId);
13581358
const location = await elem.getLocation();
13591359
assertElementExists(location, 'Failed to receive', 'location');
13601360
/* eslint-disable prefer-arrow-callback */

0 commit comments

Comments
 (0)