-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add small tests to check that notes pages from theme render (#77)
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
describe(`a note`, () => { | ||
it(`should render inside the layout`, () => { | ||
cy.visit(`/notes/hello`) | ||
cy.contains(`Shadowed Site Title`).should(`exist`) | ||
}) | ||
|
||
it(`should render markdown link`, () => { | ||
cy.contains(`homepage`).click() | ||
}) | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
describe(`notes listing page`, () => { | ||
it(`should render a list of notes`, () => { | ||
cy.visit(`/notes/`) | ||
cy.findByText(`example-dir`).should(`exist`) | ||
}) | ||
|
||
it(`should render inside the layout`, () => { | ||
cy.contains(`Shadowed Site Title`).should(`exist`) | ||
}) | ||
}) |
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 +1,19 @@ | ||
# Hello! | ||
|
||
Here is some content written in MDX. | ||
|
||
See the [homepage](/) | ||
|
||
- here are | ||
- a few | ||
- bullet points | ||
|
||
--- | ||
|
||
Some **bold** and _underlined_ text. | ||
|
||
A numbered list: | ||
|
||
1. one | ||
2. two | ||
3. three |