<commit_before>var expect = require('chai').expect,
	debug = require('debug')('bp:test:e2e'),
	browserPerf = require('../../');

var expectedMetrics = {
	chrome: [
		// ChromeTracingMetrics & RafRenderingMetrics
		'mean_frame_time',
		'meanFrameTime',

		// Network Timings
		'firstPaint',
		'connectStart',
		'domainLookupStart',
		'domComplete',
		'domInteractive',
		'domLoading',
		'fetchStart',
		'navigationStart',

		// RuntimePerfMetrics
		'ExpensiveEventHandlers',
		'ExpensivePaints',
		'GCInsideAnimation',
		'Layers',
		'NodePerLayout_avg',
		'PaintedArea_avg',
		'PaintedArea_total',

		// TimelineMetrics
		'DecodeImage',
		'CompositeLayers',
		'Layout',
		'Paint',
		'RecalculateStyles',
		'EvaluateScript',
		'EventDispatch',
		'FireAnimationFrame',
		'FunctionCall',
		'GCEvent',
		'XHRReadyStateChange',
		'UpdateLayerTree',
		'Rasterize'
	],
	firefox: [
		'meanFrameTime',
		// Network Timings
		'firstPaint',
		'connectStart',
		'domainLookupStart',
		'domComplete',
		'domInteractive',
		'domLoading',
		'fetchStart',
		'navigationStart',
	]
};

describe('End To End Test Cases', function() {
	it('fails if selenium is not running', function(done) {
		browserPerf('http://google.com', function(err, res) {
			expect(err).to.not.be.null;
			expect(err).to.not.be.empty;<commit_msg>(fix): Remove properties from tests that do not always show up<commit_after>var expect = require('chai').expect,
	debug = require('debug')('bp:test:e2e'),
	browserPerf = require('../../');

var expectedMetrics = {
	chrome: [
		// ChromeTracingMetrics & RafRenderingMetrics
		'mean_frame_time',
		'meanFrameTime',

		// Network Timings
		'firstPaint',
		'connectStart',
		'domainLookupStart',
		'domComplete',
		'domInteractive',
		'domLoading',
		'fetchStart',
		'navigationStart',

		// RuntimePerfMetrics
		'ExpensiveEventHandlers',
		'ExpensivePaints',
		'GCInsideAnimation',
		'Layers',
		'NodePerLayout_avg',
		'PaintedArea_avg',
		'PaintedArea_total',

		// TimelineMetrics
		'DecodeImage',
		'CompositeLayers',
		'Layout',
		'Paint',
		'RecalculateStyles',
		//'EvaluateScript',
		//'EventDispatch',
		'FireAnimationFrame',
		'FunctionCall',
		//'GCEvent',
		//'XHRReadyStateChange',
		'UpdateLayerTree',
		'Rasterize'
	],
	firefox: [
		'meanFrameTime',
		// Network Timings
		'firstPaint',
		'connectStart',
		'domainLookupStart',
		'domComplete',
		'domInteractive',
		'domLoading',
		'fetchStart',
		'navigationStart',
	]
};

describe('End To End Test Cases', function() {
	it('fails if selenium is not running', function(done) {
		browserPerf('http://google.com', function(err, res) {
			expect(err).to.not.be.null;
			expect(err).to.not.be.empty;
{'fraction_non_alphanumeric': 0.16359533659270403, 'fraction_numerical': 0.000752162467092892, 'mean_word_length': 4.553235908141962, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '313047', 'n_tokens_mistral': 1036, 'n_tokens_neox': 924, 'n_words': 161}