Skip to content

Playwright Helper - Support the partial match with selectOption #4017

@kobenguyent

Description

@kobenguyent

What are you trying to achieve?

Hey team, I recently moved from codecept v 3.5.3 up to 3.5.6(and tried with 3.5.7) and noticed that tests I had previously using I.selectOption used to pull on partial match and I guess in the newer versions are exact match? code I am running would be something like this
I.selectOption('#myLocator', 'medium');

What do you get instead?

The full value when looking at the option medium is formatted like medium - productNumber (price) , now when I run this on 3.5.6 or 3.5.7 it fails but if I put the full value it passes. The issue being is I am running this in multiple environments and product is a dynamic value based on which one I am running this in.
Additional info I am also using this with Playwright v 1.39.0

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