Skip to content

Commit

Permalink
test: context
Browse files Browse the repository at this point in the history
  • Loading branch information
abdul99ahad committed Nov 11, 2024
1 parent d5a3757 commit 079a5bc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions client/src/app/__tests__/AppSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2135,6 +2135,36 @@ describe('<App>', function() {
});
});

it('should preserve state when reopened after being closed', function() {

// given
const { app } = createApp();

app.setLayout({
panel: {
open: true,
tab: 'variable-outline'
}
});

// when

// close
app.triggerAction('openBottomPanel');

// open
app.triggerAction('openBottomPanel');


// then
expect(app.state.layout).to.eql({
panel: {
open: true,
tab: 'variable-outline'
}
});
});

});

});
Expand Down

0 comments on commit 079a5bc

Please sign in to comment.