Closed mirekdlugosz closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 76.85%. Comparing base (
ac9ff64
) to head (b508263
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
.locator()
can match multiple elements on the page..locator().click()
works in strict mode, i.e. Playwright will refuse the operation if.locator()
matches multiple elements. This is a change compared to.click(locator_string)
, which would happily operate on first element matching the locator_string.Using
.first
between.locator()
and.click()
ensures there's single element to operate on.This fixes a bug that is only present when running some tests on empty database. Which happens to be a case in pipeline.