Skip to content

Instantly share code, notes, and snippets.

View marcelmokos's full-sized avatar

Marcel Mokoš marcelmokos

View GitHub Profile
@marcelmokos
marcelmokos / protractor-config.js
Created January 3, 2017 23:27
protractor-config.js with jasmine-spec-reporter
//noinspection JSUnusedGlobalSymbols
import {SpecReporter} from "jasmine-spec-reporter";
export const config = {
framework: "jasmine2",
specs: ["spec/**/*.spec.js"],
directConnect: true,
chromeDriver: "node_modules/.bin/chromedriver",
jasmineNodeOpts: {
// remove ugly protractor dot reporter
@marcelmokos
marcelmokos / .babelrc
Last active February 9, 2017 22:30
.babelrc
{
"presets": [
"latest",
"stage-0"
]
}
@marcelmokos
marcelmokos / protractor-config.js
Last active January 3, 2017 23:09
protractor usage with non angular applications
export const config = {
//...
onPrepare: function () {
/**
* If you are testing against a non-angular site - set ignoreSynchronization setting to true
*
* If true, Protractor will not attempt to synchronize with the page before
* performing actions. This can be harmful because Protractor will not wait
* until $timeouts and $http calls have been processed, which can cause
* tests to become flaky. This should be used only when necessary, such as