Skip to content
Permalink
Browse files
  • Loading branch information
lingamr committed Dec 2, 2019
2 parents 6014835 + 8fc97fb commit 58f6c59273db2fefc3cd15a57cfc123fa04235b2
Showing 1 changed file with 5 additions and 3 deletions.
@@ -48,7 +48,7 @@ describe('Registering', () => {
//ACT
await page.type('input[name=user]', 'NewUser')
await page.type('input[name=pass]', 'password')
await page.type('input[type=file]','avatar')
await page.type('input[type=file]','./public/avatars/')
//await page.click('input[type=submit]')
await page.click('[type=submit]')
await page.goto('http://localhost:8080/login', { timeout: 30000, waitUntil: 'load' })
@@ -58,9 +58,11 @@ describe('Registering', () => {
await page.click('[type=submit]')
//ASSERT
//check that the user is taken to the homepage after attempting to login as the new user:
/*await page.waitForSelector('h1')
expect( await page.evaluate( () => {document.querySelector('h1').innerText, document.querySelectorAll('forumlist').innerText }) )
await page.waitForSelector('h1')
/*expect( await page.evaluate( () => {document.querySelector('h1').innerText, document.querySelectorAll('forumlist').innerText }) )
.toBe(undefined)*/
/*expect( await page.evaluate( () => document.querySelector('h1').innerText ) )
.toBe('FORUM')*/

// grab a screenshot
const image = await page.screenshot()

0 comments on commit 58f6c59

Please sign in to comment.