Skip to content

kobenguyent/codeceptjs-playwright-fun

Repository files navigation

"Buy Me A Coffee"

Introduction

This project demonstrates how to drive your E2E tests with CodeceptJS - Playwright.

  • Tests are written in TS
  • CI/CD with Github Actions
  • Page Object Model is applied

How to use

This is done using CodeceptJS https://codecept.io/

Tech

This test uses a number of open source projects to work properly:

Installation

This requires Node.js v14+ to run.

Install the dependencies and devDependencies.

cd codeceptjs-playwright-fun npm i

How to trigger test

To run all tests just simply type

npm test

Example output

CodeceptJS v3.3.5 #StandWithUkraine Using test root "/Users/tamara-thanh/Desktop/codeceptjs-playwright-fun" login -- Incorrect username or password. I am on page "/" I click "Sign in", "//html/body/div[1]/header" I fill field "Username or email address", "[email protected]" I fill field "Password", ***** I click "Sign in" I see "Incorrect username or password.", ".flash-error" ✔ OK in 9469ms OK | 1 passed // 10s

Reportportal

Updating the configurations accordingly.

 plugins:{reportportal:{enabled: false, // enabling this plugin by setting this to true require: '@reportportal/agent-js-codecept', token: process.env.RP_TOKEN,// provide your reportportal token endpoint: 'https://demo.reportportal.io/api/v1', launchName: 'peterngtr_TEST_EXAMPLE', projectName: 'peterngtr_personal' } } 

After the test execution

Report Portal

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published