Skip to content

Failure when scrolling if element is not scrollable #26

@corredorcatino

Description

@corredorcatino

Expected Behavior

If an element is not scrollable, the monkey should continue with the next event without issues.

Current Behavior

Monkey throws an error and stop its execution.

monkey.js.mp4

Steps to Reproduce

  1. Launch Ghost locally
  2. Configure the monkey with the following parameters
{
    "projectId":"TSDL-Monkey-with-cypress",
    "baseUrl":"http://localhost:2368/ghost",
    "env":{
        "appName":"Ghost",
        "events":500,
        "delay":300,
        "seed":25,
        "pctClicks":20,
        "pctScroll":1,
        "pctSelectors":20,
        "pctKeys":15,
        "pctSpKeys":10,
        "pctPgNav":34
    },
    "integrationFolder": "./cypress/integration/monkey",
    "pluginsFile": "./cypress/plugins/index.js",
    "pageLoadTimeout":120000,
    "defaultCommandTimeout":120000,
    "testFiles": "monkey.js",
    "videosFolder":"./results"
}
  1. Run .\node_modules\.bin\cypress run --config-file .\monkey-config.json --headed

Context

  • monkey-cypress e60dda8
  • Ghost 5.68.0
  • Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions