Skip to content

Commit babe1b0

Browse files
committed
fix
empty check for example section
1 parent 07b5a5a commit babe1b0

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/pull-request.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ jobs:
8080
test-provider-api-docs:
8181
name: Test Provider API Docs
8282
runs-on: ubuntu-latest
83+
env:
84+
GOPATH: ${{ github.workspace }}/go
8385
steps:
8486
- name: Install Node
8587
uses: actions/setup-node@v4
@@ -100,11 +102,11 @@ jobs:
100102
- name: Check out branch
101103
uses: actions/checkout@v4
102104

103-
- name: Yarn Install
104-
run: yarn install
105-
106105
- name: Run Provider Tests
107-
run: ./scripts/ci/run-provider-tests.sh
106+
run: |
107+
make ensure
108+
make build-assets
109+
./scripts/ci/run-provider-tests.sh
108110
109111
# Preview runs a registry build into a commit specific S3 bucket to preview changes.
110112
#

cypress/e2e/test-provider-api-docs.cy.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ describe("Test Provider", () => {
7272
// Verify that the examples section exists and contains examples for all languages
7373
describe("Examples section", () => {
7474
// Verify that the examples section exists
75-
it("contains at least one example", () => {
75+
it("contains the example section", () => {
7676
cy.get(container)
77-
.find("h2 ~ h3")
78-
.should("have.length.of.at.least", 1);
77+
.find("h2")
78+
.contains("Example Usage")
79+
.should("exist");
7980
});
8081

8182
// Verify that the examples section contains examples for all languages

0 commit comments

Comments
 (0)