-
-
Notifications
You must be signed in to change notification settings - Fork 902
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: removing toc to fix the docs html (#341)
Co-authored-by: Shinigami <[email protected]>
- Loading branch information
1 parent
9206e7a
commit c932942
Showing
4 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,3 +91,6 @@ REVISION | |
.yarn/ | ||
package-lock.json | ||
yarn.lock | ||
|
||
cypress/screenshots | ||
cypress/videos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,26 @@ | ||
describe('Smoke Test', () => { | ||
it('compiles the guide page', () => { | ||
beforeEach(() => { | ||
cy.visit('/guide/'); | ||
cy.get('a[href="/api/animal.html"]').as('firstSectionLink'); | ||
}); | ||
|
||
it('compiles the guide page', () => { | ||
cy.contains('Getting Started'); | ||
}); | ||
|
||
// it('compiles the playground page', () => { | ||
// cy.visit('/playground/'); | ||
// cy.contains('Playground under construction'); | ||
// }); | ||
it('renders this last code example in the code', () => { | ||
// Click on any section in the sidebar | ||
cy.get('@firstSectionLink') | ||
.click() | ||
// Make sure the number of code examples is the same between reloads | ||
.get('.container pre code') | ||
.then(($codeBlocks) => { | ||
// Trigger a reload | ||
cy.reload() | ||
// Give the runtime a chance to update/fail | ||
.wait(500) | ||
.get('.container pre code') | ||
.should('have.length', $codeBlocks.length); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters