Skip to content

Commit f8e5736

Browse files
committed
fix test
1 parent 5d7b145 commit f8e5736

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/check-examples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ jobs:
1616
- uses: actions/checkout@v3
1717

1818
- run: |
19+
go run ./lib/utils/get-browser
1920
go test -run Example ./...
2021
go test ./lib/examples/e2e-testing

examples_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121

2222
// This example opens https://github.com/, searches for "git",
2323
// and then gets the header element which gives the description for Git.
24-
func Example() {
24+
func Example_basic() {
2525
// Launch a new browser with default options, and connect to it.
2626
browser := rod.New().MustConnect()
2727

@@ -57,7 +57,7 @@ func Example() {
5757

5858
// Output:
5959
// Git is the most widely used version control system.
60-
// Found 11 input elements
60+
// Found 10 input elements
6161
// 1 + 2 = 3
6262
// Repository search results · GitHub
6363
}

0 commit comments

Comments
 (0)