Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

chore(jasmine): prevent random execution order in jasmine 3 #5126

Merged
merged 1 commit into from
Jan 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/frameworks/jasmine.js
Original file line number Diff line number Diff line change
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