Exemplo n.º 1
0
 it('has a title', async () => {
   // Only works with PhantomJS, at present
   ghost.setDriverOpts({ parameters: { 'ignore-ssl-errors': 'yes' }})
   let result = await ghost.open(URL)
   assert.notEqual(result, 'fail')
   let pageTitle = await ghost.pageTitle()
   assert.ok(pageTitle.match(/Basic/))
   ghost.exit()
 })
Exemplo n.º 2
0
 it('does not have a signed cert', async () => {
   ghost.setDriverOpts({})
   let result = await ghost.open(URL)
   assert.equal(result, 'fail')
   ghost.exit()
 })