https://cypress.io logo
So this is an example that is working for me. This...
# e2e-testing
m
So this is an example that is working for me. This is my config file.
Copy code
js
const { defineConfig } = require("cypress");

module.exports = defineConfig({
  e2e: {
    experimentalSessionAndOrigin: true,
    setupNodeEvents(on, config) {
      // implement node event listeners here
    },
  },
});
And this is my test file.
Copy code
js
describe('empty spec', () => {
  it('passes', () => {
    cy.visit('https://example.cypress.io')
    cy.origin('https://the-internet.herokuapp.com/', () => {
      cy.visit('https://the-internet.herokuapp.com/')
      cy.contains('Checkboxes').click()
    })
  })
})