Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import visit from '../utils/testUrlUtil'
- describe('When visiting the homepage', function () {
- jasmine.DEFAULT_TIMEOUT_INTERVAL = 70000
- test('Logs in and gets inside the dashboard successfully', async function () {
- let page = visit('/login')
- .type('input[name="email"]', 'uattestjohn@testaccount.roger.ai')
- .type('input[name="password"]', 'rogerrocks')
- .click('#submit-button')
- .wait('#dashboard-container')
- let text = await page.evaluate(() => document.body.textContent)
- .end()
- expect(text).not.toContain('Oops! We\'re sorry, but something went wrong.')
- })
- })
Add Comment
Please, Sign In to add comment