Skip to content

Commit

Permalink
Try another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Dec 11, 2019
1 parent 34e604f commit e9db89d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions test/integration/css/fixtures/single-module/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { redText } from './index.module.css'

function Home() {
export default function Home() {
return (
<div id="verify-red" className={redText}>
This text should be red.
</div>
)
}

export default Home
3 changes: 2 additions & 1 deletion test/integration/css/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -921,8 +921,9 @@ describe('CSS Support', () => {
let browser
try {
browser = await webdriver(appPort, '/')
await waitFor(2000) // ensure application hydrates
await waitFor(2000)

await browser.waitForElementByCss('#verify-red')
const currentColor = await browser.eval(
`window.getComputedStyle(document.querySelector('#verify-red')).color`
)
Expand Down

0 comments on commit e9db89d

Please sign in to comment.