codeceptjs
Version:
Modern Era Acceptance Testing Framework for NodeJS
129 lines (84 loc) • 4.38 kB
Markdown
---
id: examples
title: Examples
---
> Add your own examples to our [Wiki Page](https://github.com/Codeception/CodeceptJS/wiki/Examples)
## [Basic Examples](https://github.com/Codeception/CodeceptJS/tree/master/examples)
CodeceptJS repo contains basic tests (both failing and passing) just to show how it works.
Our team uses it to test new features and run simple scenarios.
## [Testing Single Page Application](https://github.com/bugiratracker/codeceptjs-demo)

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.
Tests repository deomstrate usage of
* Puppeteer helper
* ApiDataFactory helper
* autoLogin plugin
* Dynamic config with profiles
## [Practical E2E Tests](https://gitlab.com/paulvincent/codeceptjs-e2e-testing)
Examples from the book [Practical End 2 End Testing with CodeceptJS](https://leanpub.com/codeceptjs/) by **Paul Vincent Beigang**.
This repository demonstrates usage of:
* dynamic config with profiles
* testing WYSIWYG editor
* GitLab CI
## [CodeceptJS Cucumber E2E Framework](https://github.com/gkushang/codeceptjs-e2e)
This repository contains complete E2E framework for CodeceptJS with Cucumber and SauceLabs Integration
* CodecepJS-Cucumber E2E Framework
* Saucelabs Integration
* Run Cross Browser tests in Parallel on SauceLabs with a simple command
* Run tests on `chrome:headless`
* Page Objects
* `Should.js` Assertion Library
* Uses `wdio` service (selenium-standalone, sauce)
* Allure HTML Reports
* Uses shared Master configuration
* Sample example and feature files of GitHub Features
## [Amazon Tests v2](https://gitlab.com/thanhnguyendh/codeceptjs-wdio-services)
Testing Amazon website using Selenium WebDriver.
This repository demonstrates usage of:
* WebDriver helper
* Page Objects
* wdio services (selenium-standalone)
* Parallel execution
* GitLab CI setup
## [Amazon Tests v1](https://github.com/PeterNgTr/amazon-ui-tests)
Previous version of Amazon Tests, still valid but quite different.
This repository demonstrates usage of:
* WebDriver helper
* Page Objects
* Bootstrap and teardown
* Parallel execution
## [Tests with Docker Compose](https://github.com/mathesouza/codeceptjs-docker-compose)
Running CodeceptJS tests with Docker Compose
This repository demonstrates usage of:
* CodeceptJS Docker image
* WebDriver helper
* Allure plugin
## [ModusCreate Tests](https://github.com/ModusCreateOrg/codeceptjs-nightmare-harness)
Test automation by ModusCreate agency with NightmareJS.
This repository demonstrates usage of:
* Nightmare helper
* Reports with Mochawesome
* Docker
* Page objects and page fragments
## [AngularJS Example Tests](https://github.com/armno/angular-e2e-codeceptjs-example)
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.
This repository demonstrates usage of
* Puppeteer helper
* Working with Angular CLI
* Reports with Mochawesome helper
## [REST Example Tests](https://github.com/PeterNgTr/codeceptjs-rest-demo)
This repository demonstrates usage of
* REST helper
## [Automation Starter](https://github.com/sjorrillo/automation-starter)
The purpose of this application is for learning the basics and how to use good practices and useful tools in automation.
* Puppeteer helper
* 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
* Linting `airbnb-base`, `codeceptjs/codeceptjs` and full ES6 support
## [Example for using: Puppeteer, Gherkin, Allure with parallel execution](https://github.com/SchnuckySchuster/codeceptJSExample)
This is a ready to use example that shows how to integrate CodeceptJS with Puppeteer and Allure as reporting tool.
* detailed ReadMe
* tests written in cucumber alongside tests written in the codeceptJS DSL
* puppeteer helper example
* test steps, pages, fragments
* examples for sequential and parallel execution
* generation of allure test results