Sha256: 7ee6ac42dd1880fd161456bfc81e92641f9e65d065ea8b64ffdde57821da5c42
Contents?: true
Size: 920 Bytes
Versions: 2
Compression:
Stored size: 920 Bytes
Contents
// CypressDev: dont remove these command Cypress.Commands.add('appCommands', function (body) { cy.log("APP: " + JSON.stringify(body)) cy.request({ method: 'POST', url: "/__cypress__/command", body: JSON.stringify(body), log: true, failOnStatusCode: true }) }); Cypress.Commands.add('app', function (name, command_options) { cy.appCommands({name: name, options: command_options}) }); Cypress.Commands.add('appScenario', function (name) { cy.app('scenarios/' + name) }); Cypress.Commands.add('appEval', function (code) { cy.app('eval', code) }); Cypress.Commands.add('appFactories', function (options) { cy.app('factory_bot', options) }); Cypress.Commands.add('appFixtures', function (options) { cy.app('activerecord_fixtures', options) }); // CypressDev: end // The next is optional // beforeEach(() => { // cy.app('clean') // have a look at cypress/app_commands/clean.rb // });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cypress-on-rails-1.1.1 | lib/generators/cypress_dev/templates/spec/cypress/support/on-rails.js |
cypress-on-rails-1.1.0 | lib/generators/cypress_dev/templates/spec/cypress/support/on-rails.js |