Skip to content

Commit

Permalink
chore(e2e): fix end-to-end testing to useMarionette option for Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
cnishina committed Mar 13, 2017
1 parent 5c1de8e commit 80808df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion e2e_spec/desktop_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ let browsers: string[] = require('./target_browsers')[os.type()];
describe('desktop browser smoke tests', () => {
browsers.forEach((browserName) => {
it('should be able to boot up ' + browserName, (done) => {
let capabilities: any = null;
if (browserName == 'firefox') {
capabilities = {browserName: browserName, useMarionette: true};
} else {
capabilities = {browserName: browserName};
}
let driver = new webdriver.Builder()
.usingServer('http://localhost:4444/wd/hub')
.withCapabilities({browserName: browserName})
.withCapabilities(capabilities)
.build();
driver.get('http://localhost:4444/wd/hub/status')
.then(() => {
Expand Down

0 comments on commit 80808df

Please sign in to comment.