Skip to content

Use fixture as request body shortcut #3387

Open
@bahmutov

Description

@bahmutov

It would be nice to be able to load and send a fixture file by name like

it('finds issues mentioned', function () {
   cy.request('/api', 'fx:pr-opened')
})

Currently, have to load fixture and then send

it('finds issues mentioned', function () {
    cy.fixture('pr-opened')
      .then(data => cy.request('/api', data))
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    E2EIssue related to end-to-end testingpkg/driverThis is due to an issue in the packages/driver directorytopic: fixturesFixture loading and usagetype: enhancementRequested enhancement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions