Skip to content

Commit

Permalink
Merge pull request #973 from odidev/arm_support
Browse files Browse the repository at this point in the history
Updated mocha-headless-chrome version to latest in pakcage.json
  • Loading branch information
tofumatt committed Jul 5, 2020
2 parents c88e530 + fdfdbbb commit abe16c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,12 @@ module.exports = exports = function(grunt) {
grunt.registerTask('mocha', 'custom function to run mocha tests', function() {
const {runner} = require('mocha-headless-chrome');
const fs = require('fs');
const path = require('path');
var done = this.async();
var tempErrLogs = fs.createWriteStream('temp.test.log');
var oldStdErr = process.stderr.write;
var totaltestsPassed = 0;
var totaltestsFailed = 0;
var totalDuration = 0;
var asset = path.join.bind(null, __dirname,
'node_modules/puppeteer/.local-chromium/linux-686378');
var urls = [
'http://localhost:9999/test/test.main1.html',
'http://localhost:9999/test/test.min.html',
Expand All @@ -254,8 +251,8 @@ module.exports = exports = function(grunt) {
reporter: 'dot', // mocha reporter name
width: 800, // viewport width
height: 600, // viewport height
timeout: 60000, // timeout in ms
executablePath: asset('chrome-linux/chrome'),// chrome executable path
timeout: 120000, // timeout in ms
executablePath: null, // chrome executable path
visible: false, // show chrome window
args: ['no-sandbox'] // chrome arguments
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"grunt-contrib-watch": "^0.5.0",
"grunt-es3-safe-recast": "^0.1.0",
"grunt-eslint": "^20.0.0",
"mocha-headless-chrome": "2.0.3",
"mocha-headless-chrome": "3.1.0",
"grunt-rollup": "^0.6.2",
"grunt-run": "^0.5.2",
"grunt-saucelabs": "^5.1.2",
Expand Down
2 changes: 1 addition & 1 deletion test/test.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,7 @@ DRIVERS.forEach(function(driverName) {

SUPPORTED_DRIVERS.forEach(function(driverName) {
describe(driverName + ' driver dropInstance', function() {
this.timeout(30000);
this.timeout(80000);

function setCommonOpts(opts) {
opts.driver = driverName;
Expand Down

0 comments on commit abe16c8

Please sign in to comment.