Skip to content

Docs cypress have wrong function name #3070

@ErtanTaner

Description

@ErtanTaner

Problem

In Astro's testing doc's testing section, we have 2 hint for configure to base url for fast usage of playwright and cypress with less code but cypress have the wrong function name in hint.

Solution

Should change

You can set "baseUrl": "http://localhost:3000" in the cypress.config.js configuration file to use cy.visit("/") instead of page.goto("http://localhost:3000/") for a more convenient URL.

to

You can set "baseUrl": "http://localhost:3000" in the cypress.config.js configuration file to use cy.visit("/") instead of cy.visit("http://localhost:3000/") for a more convenient URL.

Going to open an PR for this after this issue.

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