Skip to content

Commit

Permalink
chore(jasmine): prevent random execution order in jasmine 3 (#5126)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnishina committed Mar 23, 2019
1 parent 8afc4e2 commit 2e5c2e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/frameworks/jasmine.js
Expand Up @@ -69,6 +69,12 @@ exports.run = async function(runner, specs) {
const reporter = new RunnerReporter(runner);
jasmine.getEnv().addReporter(reporter);

// Jasmine 3 allows for tests to be in random order by default. This does not
// work well with e2e tests where the browser state is determined by the
// order of the tests. Setting to false will prevent random execution.
// See https://jasmine.github.io/api/3.3/Env.html
jasmine.getEnv().randomizeTests(false);

// Add hooks for afterEach
require('./setupAfterEach').setup(runner, specs);

Expand Down

0 comments on commit 2e5c2e6

Please sign in to comment.