Skip to content

Commit

Permalink
Revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Feb 18, 2021
1 parent 10bb575 commit 6352061
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,16 @@ describe(`hot reloading non-js file`, () => {
})

it(`displays placeholder content on launch`, () => {
cy.get(`[data-testid="${TEST_ID}"]`)
.invoke(`text`)
.should(`contain`, TEMPLATE)
cy.getTestElement(TEST_ID).invoke(`text`).should(`contain`, TEMPLATE)
})

it(`hot reloads with new content`, () => {
cy.get(`[data-testid="${TEST_ID}"]`)
.invoke(`text`)
.should(`contain`, TEMPLATE)
cy.getTestElement(TEST_ID).invoke(`text`).should(`contain`, TEMPLATE)
cy.exec(
`npm run update -- --file content/2018-12-14-hello-world.md --replacements "${TEMPLATE}:${message}"`
)
cy.wait(1000)

cy.get(`[data-testid="${TEST_ID}"]`).invoke(`text`).should(`eq`, message)
cy.getTestElement(TEST_ID).invoke(`text`).should(`eq`, message)
})
})
2 changes: 1 addition & 1 deletion e2e-tests/development-runtime/src/pages/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Layout from "../components/layout"

function Hooks() {
const [count, setCount] = useState(0)
const increment = () => setCount(count + 10000)
const increment = () => setCount(count + 1)
const decrement = () => setCount(count - 1)
return (
<Layout>
Expand Down

0 comments on commit 6352061

Please sign in to comment.