Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Jan 19, 2024
1 parent 5d7b145 commit f8e5736
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ jobs:
- uses: actions/checkout@v3

- run: |
go run ./lib/utils/get-browser
go test -run Example ./...
go test ./lib/examples/e2e-testing
4 changes: 2 additions & 2 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

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

Expand Down Expand Up @@ -57,7 +57,7 @@ func Example() {

// Output:
// Git is the most widely used version control system.
// Found 11 input elements
// Found 10 input elements
// 1 + 2 = 3
// Repository search results · GitHub
}
Expand Down

0 comments on commit f8e5736

Please sign in to comment.