Giter Site home page Giter Site logo

daft-task's Introduction

Cypress Automated Test for Daft.ie

Overview

This repository contains an automated test script using Cypress for searching out the "Garage" keyword on the Daft.ie website. The test involves opening the Daft homepage, searching for a Sale Ad in county Dublin, applying the "garage" keyword filter, and verifying the results.

Prerequisites

Before running the test, ensure that you have the following installed:

  • Node.js and npm

Setup

  1. Clone the repository:

    git clone https://github.com/ahmadiqbal1/distilled.git
    
  2. Navigate to the project repository

    cd daft-cypress-automation
    
  3. Install dependencies:

    npm install
    
  4. Running the Test

To execute the automated test, run the following command:

npx cypress open

  1. This will open the Cypress Test Runner. Click on the test file (Daft-keyword-search.js) to run the test. which is located at "cypress\integration\example\Daft-keyword-search.js", SpecPattern is already there in the cypress.config.js file to load the test file automatically when the cypress test runner is open.Just click on the file and the execution will be started automatically.

  2. Running Headless Tests

To run the tests in headless mode:

npm run test


## Running Tests in Headed Mode

To run the tests in headless mode:

```bash
npm run headTest

## Running Tests in Chrome

To run the tests in headless mode:

```bash
npm run chromeTest

## Github Actions Workflow and Jenkins file for CI/CD

Both files are setup 
Jenkins at the root of the folder and github actions file at the following path
.github\workflows\cypress.yml

daft-task's People

Watchers

Ahmad Iqbal 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.