Sha256: 95a563f8651763ec821f647306c8409e6c89dd7a8eee545cf218a11c856ce3aa
Contents?: true
Size: 893 Bytes
Versions: 21
Compression:
Stored size: 893 Bytes
Contents
describe('Rails using scenarios examples', function() { beforeEach(() => { cy.app('clean') // have a look at cypress/app_commands/clean.rb }) it('setup basic scenario', function() { cy.appScenario('basic') cy.visit('/') cy.get('table').find('tbody').should(($tbody) => { // clean should of removed these from other tests expect($tbody).not.to.contain('Good bye Mars') expect($tbody).not.to.contain('Hello World') expect($tbody).to.contain('I am a Postman') }) }) it('example of missing scenario failure', function() { cy.visit('/') cy.appScenario('basic') // cy.appScenario('missing') // uncomment these if you want to see what happens }) it('example of missing app failure', function() { cy.visit('/') cy.appScenario('basic') // cy.app('run_me') // uncomment these if you want to see what happens }) })
Version data entries
21 entries across 21 versions & 1 rubygems