“Instale o acaso em Cypress” Respostas de código

Instale o acaso em Cypress

Just install chancejs with npm:
npm install chance
Then just use it in your test for example:
/// <reference types="cypress" />
import Chance from 'Chance';
const chance = new Chance();
describe('Testing chance', function (){
   const company =chance.company();
   it('type company in duckduckgo.com', function () {
        cy.visit('https://duckduckgo.com/')
        cy.get('#search_form_input_homepage')
        .should('be.visible')
        .type(company)
    })
})
Repulsive Raven

Instale o cipreste

npm install cypress or npm install cypress --save-dev // Make sure that you have already run npm init

./node_modules/.bin/cypress open  //to open cypress window, will take 30 secs
Batman

Respostas semelhantes a “Instale o acaso em Cypress”

Perguntas semelhantes a “Instale o acaso em Cypress”

Mais respostas relacionadas para “Instale o acaso em Cypress” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código