Skip to content

Commit

Permalink
Reset config globally on before hook (mattermost#5157)
Browse files Browse the repository at this point in the history
Co-authored-by: mattermod <[email protected]>
  • Loading branch information
Joseph Baylon and mattermod authored Mar 27, 2020
1 parent 0010fe7 commit 7df0c88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e/cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ Cypress.on('test:after:run', (test, runnable) => {
}
});

// Reset config
before(() => {
cy.apiLogin('sysadmin');
cy.apiUpdateConfig();
});

// Add login cookies to whitelist to preserve it
beforeEach(() => {
Cypress.Cookies.preserveOnce('MMAUTHTOKEN', 'MMUSERID', 'MMCSRF');
Expand Down

0 comments on commit 7df0c88

Please sign in to comment.