Skip to content

Make assert_select 'form' more precise in tests #526

@nymous

Description

@nymous

For example, the sales page has 3 forms: the sale form itself, but also the search bar and the logout button. Using a simple assert_select can match any of them, not the specific one we're looking for.
Use form[action='url/of/action'] instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions