Skip to content

A Cypress-based automation tool for logging in to Facebook accounts. This repository contains scripts to automate the login process using JavaScript, demonstrating best practices in test automation.

Notifications You must be signed in to change notification settings

hasanazeerkhan/facebook-automation-cypress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Automation with Cypress

This repository contains automation scripts for Facebook using Cypress, a powerful testing framework for web applications.

Table of Contents

Introduction

This project aims to automate various interactions on Facebook, including login, posting, and commenting. It serves as a learning resource for using Cypress for end-to-end testing.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js installed on your machine (version 12 or above)
  • NPM (Node Package Manager)

Installation

  1. Clone the repository:

    git clone https://github.com/hasanazeerkhan/facebook-automation-cypress.git
  2. Navigate into the project directory:

    cd facebook-automation-cypress
  3. Install the required dependencies:

    npm install

Usage

You can configure the test settings in cypress.json according to your requirements. The automation scripts are located in the cypress/integration folder.

Running Tests

To run the tests, you can use the following command:

npx cypress open

This will open the Cypress Test Runner. From there, you can select and run individual test files.

To run all tests in headless mode, use:

npx cypress run

Folder Structure

The project structure is as follows:

facebook-automation-cypress/
├── cypress/
│   ├── fixtures/
│   ├── integration/
│   ├── plugins/
│   └── support/
├── cypress.json
└── package.json
  • fixtures/: Sample data for testing.
  • integration/: Contains the actual test scripts.
  • plugins/: Custom plugins for Cypress.
  • support/: Custom commands and configurations.

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create your feature branch git checkout -b feature/AmazingFeature
  3. Commit your changes git commit -m 'Add some feature'
  4. Push to the branch git push origin feature/AmazingFeature
  5. Open a pull request.

About

A Cypress-based automation tool for logging in to Facebook accounts. This repository contains scripts to automate the login process using JavaScript, demonstrating best practices in test automation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published