Skip to content

Commit

Permalink
fix: retry failed button
Browse files Browse the repository at this point in the history
  • Loading branch information
DudaGod committed Mar 21, 2018
1 parent e53ebeb commit 01db91e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/static/modules/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ export default function reducer(state = getInitialState(compiledData), action) {
switch (action.type) {
case actionNames.VIEW_INITIAL: {
const {gui, autoRun, suites, skips} = action.payload;
const failed = filterFailedSuites(cloneDeep(suites));

return merge({}, state, {
gui,
autoRun,
skips,
suites: {all: suites}
suites: {all: suites, failed}
});
}
case actionNames.RUN_ALL_TESTS: {
Expand Down

0 comments on commit 01db91e

Please sign in to comment.