Skip to content

assert_select "foo", "x", count: 0 --- no longer works #111

Closed
@michaeleconomy

Description

@michaeleconomy

Steps to reproduce

After upgrading from rails 7.0.4 to 7.0.7

assert_select "foo", "x", count: 0 #no longer works
switching to:
assert_select "foo", text: "x", count: 0 #this has different behavior from the above statement

Expected behavior

i want to test that there is no tag with the specified text.

Actual behavior

I can no longer do this with assert_select on the new rails version.

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