"use strict";

var setup = require("../../common/setup-base")
  , desired = require('./desired')
  , env = require('../../../helpers/env');

describe('webview - auto', function () {
  var driver;
  desired.autoWebview = true;

  setup(this, desired).then(function (d) { driver = d; });

  it('should go directly into webview', function (done) {
    driver
      .get(env.GUINEA_TEST_END_POINT)
      .elementByLinkText('i am a link').click()
      .elementById('only_on_page_2').should.eventually.exist
      .nodeify(done);
  });
});

@@ -63,43 +63,8 @@
   , 
-desired = require('./desired')%0A  , 
 env 
@@ -94,16 +94,82 @@
 pers/env
+')%0A  ,  desired = require('./desired')%0A  , _ = require('underscore
 ');%0A%0Ades
@@ -224,18 +224,35 @@
 er;%0A
+%0A
   
-desired.
+setup(this, _.defaults(%7B
 auto
@@ -262,30 +262,15 @@
 view
- =
+:
  true
-;%0A%0A  setup(this
+%7D
 , de
@@ -275,16 +275,17 @@
 desired)
+)
 .then(fu

test fix