Sha256: b86ef5fdc2041ff87892adba3b60424de4b970f28a7326e501a54510c48a11fd

Contents?: true

Size: 672 Bytes

Versions: 4

Compression:

Stored size: 672 Bytes

Contents

describe('Rails Other examples', function() {
  it('Inserting a cassette', function() {
    cy.app('clean') // have a look at e2e/app_commands/clean.rb

    cy.vcr_insert_cassette('cats', { record: "new_episodes" })
    cy.visit('/using_vcr/index')

    cy.get('a').contains('Cats').click()
    cy.contains('Record from Cats API');

    cy.vcr_eject_cassette();
  })

  it('Using previous a cassette', function() {
    cy.app('clean') // have a look at cypress/app_commands/clean.rb

    cy.vcr_insert_cassette('cats')
    cy.visit('/using_vcr/index')
    cy.get('a').contains('Cats').click()
    cy.contains('Record from Cats API');

    cy.vcr_eject_cassette();
  })
})

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cypress-on-rails-1.17.0 lib/generators/cypress_on_rails/templates/spec/cypress/e2e/rails_examples/using_vcr.cy.js
cypress-on-rails-1.16.0 lib/generators/cypress_on_rails/templates/spec/cypress/e2e/rails_examples/using_vcr.cy.js
cypress-on-rails-1.15.1 lib/generators/cypress_on_rails/templates/spec/cypress/e2e/rails_examples/using_vcr.cy.js
cypress-on-rails-1.15.0 lib/generators/cypress_on_rails/templates/spec/cypress/e2e/rails_examples/using_vcr.cy.js