Skip to content

Cypress fails to load the test page within the default pageLoadTimeout of 20000ms, resulting in the following error message: #31823

Open
@Shah1-qa

Description

@Shah1-qa

Current behavior

Timed out after waiting 20000ms for your remote page to load.

Your page did not fire its load event within 20000ms.

You can try increasing the pageLoadTimeout value in Users\shahb\OneDrive\Documents\Creatingly\Automation-Tests\DMV-UI\cypress.config.js to wait longer.

Browsers will not fire the load event until all stylesheets and scripts are done downloading.

When this load event occurs, Cypress will continue running commands.

Because this error occurred during a before all hook we are skipping all of the remaining tests.

Desired behavior

No response

Test code to reproduce

export default defineConfig({
e2e: {
baseUrl: 'http://localhost:3000', // or your staging/dev URL
pageLoadTimeout: 20000, // tried increasing, but still fails sometimes
},
});

Cypress Version

14.4.1

Node version

20.18.1

Operating System

Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz 1.90 GHz

Debug Logs

Other

No response

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