diff --git a/.github/workflows/check-examples.yml b/.github/workflows/check-examples.yml index 5cfff8a0..6f81a4fb 100644 --- a/.github/workflows/check-examples.yml +++ b/.github/workflows/check-examples.yml @@ -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 diff --git a/examples_test.go b/examples_test.go index 2fc44f17..8ed004fe 100644 --- a/examples_test.go +++ b/examples_test.go @@ -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() @@ -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 }