3 changed files with 19 additions and 5 deletions
@ -0,0 +1,9 @@ |
|||||
|
import Nightmare from 'nightmare'; |
||||
|
|
||||
|
describe('Homepage', () => { |
||||
|
it('it should have logo text', async () => { |
||||
|
const page = Nightmare().goto('http://localhost:8000'); |
||||
|
const text = await page.wait('h1').evaluate(() => document.body.innerHTML).end(); |
||||
|
expect(text).toContain('<h1>Ant Design Pro</h1>'); |
||||
|
}); |
||||
|
}); |
||||
Loading…
Reference in new issue