Git Product home page Git Product logo

automationtask's Introduction

👋 Welcome to the SkyNews webPage Automated Scripts using Bdd Framework

OverView

  • This repo contains an test scripts written in Cypress using Bdd Framework.

  • The tests are written to be directly compared to the SkyNews Webpage.

Installation

  1. Install Cypress via npm:
  2. cd /your/project/path
  3. npm install cypress --save-dev

Install the plugin by running:

npm install --save-dev cypress-cucumber-preprocessor

Cypress Configuration

Add it to your plugins:

cypress/plugins/index.js

const cucumber = require('cypress-cucumber-preprocessor').default

module.exports = (on, config) => {
  on('file:preprocessor', cucumber())
}

Add support for feature files to your Cypress configuration

cypress.json

{
    "testFiles": "**/*.{feature,features}"
}

Used Smart tagging

  1. @focus

Editor Used

Visual Studio Code

Visual code icons

Install VS code Icons File > Preferences > File Icon Theme > VSCode Icons.

Requirements

  1. Using the BDD (Given/When/Then) format, write 5 test cases that relate to features of the SkyNews.com homepage, using a full screen desktop view.
  2. Verify the browser tab’s title.
  3. Verify the number of categories displayed and their names.
  4. Verify the default focus point is on the Home category.
  5. Verify that if the user then clicks on ‘Climate’, this becomes the focus.
  6. Select a story from the homepage. Verify that a word of your choice in the title text of the article you have just selected appears once title of the new page loads.

Test Results

2021-07-11.png

automationtask's People

Contributors

sharada-sudo 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.