• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mxschmitt / playwright-go / 31992246112
78%

Build:
DEFAULT BRANCH: main
Ran 17 Aug 2026 04:06AM UTC
Jobs 9
Files 62
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Aug 2026 03:46AM UTC coverage: 79.672% (+0.03%) from 79.639%
31992246112

push

github

web-flow
fix: accept mixed string/regexp lists in ToHaveText, ToContainText, ToHaveClass (#634)

These three assertions document `expected` as "string or RegExp or a list of
those" (upstream `Array<string|RegExp>`), but dispatched on the concrete slice
type:

    switch expected.(type) {
    case []string, []*regexp.Regexp:

so only homogeneous lists took the array path. A mixed list such as
`[]any{"foo", regexp.MustCompile("bar")}` fell through to the scalar branch and
failed with "value must be a string or regexp".

Upstream branches on `Array.isArray(expected)` and lets
`serializeExpectedTextValues` validate each element, so element types never
select the branch. Mirror that: dispatch on whether `expected` is a slice, and
leave per-item validation to toExpectedTextValues, which already rejects
anything that is not a string or regexp.

Homogeneous `[]string` and `[]*regexp.Regexp` are unaffected. `ToContainClass`
is deliberately untouched: upstream types it `string|string[]` and explicitly
rejects RegExp, which the existing `[]string`/`string` switch with its `%T`
default already enforces.


Claude-Session: https://claude.ai/code/session_01Hr35MBUfsUG9DnxhBgBcZW

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

9 of 11 new or added lines in 2 files covered. (81.82%)

147 existing lines in 1 file now uncovered.

9140 of 11472 relevant lines covered (79.67%)

14765.63 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
85.06
0.91% assertions.go

Coverage Regressions

Lines Coverage ∆ File
147
78.59
0.08% page.go
Jobs
ID Job ID Ran Files Coverage
1 macos-latest-firefox - 31992246112.1 17 Aug 2026 04:47AM UTC 62
78.07
GitHub Action Run
2 macos-latest-chromium - 31992246112.2 17 Aug 2026 04:39AM UTC 62
79.39
GitHub Action Run
3 ubuntu-latest-webkit - 31992246112.3 17 Aug 2026 04:11AM UTC 62
77.93
GitHub Action Run
4 windows-latest-firefox - 31992246112.4 17 Aug 2026 04:20AM UTC 62
78.05
GitHub Action Run
5 windows-latest-chromium - 31992246112.5 17 Aug 2026 04:06AM UTC 62
79.38
GitHub Action Run
6 windows-latest-webkit - 31992246112.6 17 Aug 2026 04:12AM UTC 62
77.98
GitHub Action Run
7 ubuntu-latest-firefox - 31992246112.7 17 Aug 2026 04:22AM UTC 62
78.07
GitHub Action Run
8 macos-latest-webkit - 31992246112.8 17 Aug 2026 04:12AM UTC 62
77.47
GitHub Action Run
9 ubuntu-latest-chromium - 31992246112.9 17 Aug 2026 04:20AM UTC 62
79.39
GitHub Action Run
Source Files on build 31992246112
  • Tree
  • List 62
  • Changed 58
  • Source Changed 0
  • Coverage Changed 58
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3b1e7c9f on github
  • Prev Build on main (#31991243631)
  • Next Build on main (#31994339797)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc