Git Product home page Git Product logo

bdd_with_playwright_cucumber_ts's Introduction

Sample Playwright Automation Test

System Requirements

node >= v18.5.x

npm >= v7

Setup

// Install Visual Studio Code (or any editor)

https://code.visualstudio.com/download

// Install Node.js

https://nodejs.org/en/download

git clone https://github.com/automationExamples/Playwright-Cucumber-Exercise.git
npm install
npx playwright install

Recommended vscode extensions

Cucumber v1.7.0

Cucumber (Gherkin) Support enhanced for Behat

Instructions

To run the test

npm run test

After running, to generate the cucumber report (cucumber_report.html)

npm run report

It is not expected that you complete every task, however, please give your best effort

You will be scored based on your ability to complete the following tasks:

  • Install and setup this repository on your personal computer
  • Complete the automation tasks listed below

Tasks

  • Modify the scenario 'Validate the login page title' from login.feature which runs but fails. Determine the cause of the failure and update the scenario to pass in the test
  • Extend the scenario 'Validate login error message' from login.feature which runs and passes but is missing a step. Extend the scenario to validate the error message received.
  • Modify and extend the 'Validate successful purchase text' from purchase.feature with steps for each comment listed. Consider writing a new steps.ts file along with an appropriate page.ts
  • Extend the testing coverage with anything you believe would be beneficial

bdd_with_playwright_cucumber_ts's People

Contributors

acharjeeauntor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.