Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
have safariIgnoreFraudWarning test actually test something (fix #3205)
- Loading branch information
Showing
3 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"use strict"; | ||
|
||
var env = require('../../../../helpers/env.js'), | ||
_ = require('underscore'), | ||
setup = require("../../../common/setup-base.js"), | ||
webviewHelper = require("../../../../helpers/webview.js"), | ||
loadWebView = webviewHelper.loadWebView, | ||
desired = require('./desired.js'), | ||
ChaiAsserter = require('../../../../helpers/asserter.js').ChaiAsserter; | ||
|
||
describe('safari - webview - special capabilities', function () { | ||
var driver; | ||
var specialCaps = _.clone(desired); | ||
specialCaps.safariIgnoreFraudWarning = true; | ||
setup(this, specialCaps, {'no-reset': true}).then(function (d) { driver = d; }); | ||
|
||
beforeEach(function (done) { | ||
loadWebView(specialCaps, driver).nodeify(done); | ||
}); | ||
|
||
it('should not display a phishing warning with safariIgnoreFraudWarning @skip-chrome', function (done) { | ||
var titleToBecomeRight = new ChaiAsserter(function (driver) { | ||
return driver | ||
.title() | ||
.should.eventually.contain("I am another page title"); | ||
}); | ||
driver | ||
.get(env.PHISHING_END_POINT + 'guinea-pig2.html') | ||
.waitFor(titleToBecomeRight, 10000, 500) | ||
.nodeify(done); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters