Skip to content

onBeforeLoad handler not called when overwriting visit #640

@adamdicarlo

Description

@adamdicarlo
  • Operating System:
    macOS Sierra 10.12.6 (16G29)

  • Cypress Version:
    0.20.0

  • Browser Version:
    Built-in Electron

Bug

Current behavior:

onBeforeLoad hook is not getting called when overwriting the visit command.

Desired behavior:

onBeforeLoad hook should get called as it did in previous versions, and the docs state it should

How to reproduce:

  • Clone test repo
  • From test repo, run yarn
  • Run its cypress tests -- an alert() would happen if onBeforeLoad got called

Test code:

https://github.com/adamdicarlo/cypress-bug-640

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions