2 changed files with 4 additions and 13 deletions
@ -1,9 +0,0 @@ |
|||
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