You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cypress-dialog-boxes

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-dialog-boxes

Cypress Plugin to handle dialog boxes

1.0.0
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
0
Weekly downloads
 
Created
Source

Cypress-Dialog-Boxes

Installation

npm i -D cypress-dialog-boxes

Configuration

  • Insert import 'cypress-dialog-boxes' in the support/e2e.js file.

Usage

Window Alert

cy.checkAlert(alert-text)

cy.get(#alert-button).click();
cy.checkAlert(alert-text)

Window Confirm Box

cy.checkConfirmBox(confirm-box-text)

cy.checkConfirmBox(confirm-text)
cy.get(#confirm-button).click();

Window Cancel Confirm Box

cy.cancelConfirmBox(confirm-box-text)

cy.cancelConfirmBox(confirm-text)
cy.get(#confirm-button).click();

Compatibility

It should be compatible with all versions of Cypress

Support

Issues

Keywords

plugin

FAQs

Package last updated on 30 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts