Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hobbs committed Jan 15, 2020
1 parent a33e750 commit f40313e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cypress/integration/getTokenSilently.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('getTokenSilently', function() {
cy.toggleSwitch('local-storage');

cy.login().then(() => {
cy.reload();
cy.reload().wait(5000);

cy.get('[data-cy=get-token]')
.click()
Expand All @@ -82,7 +82,8 @@ describe('getTokenSilently', function() {
cy.toggleSwitch('use-cache');

cy.login().then(() => {
cy.toggleSwitch('refresh-tokens').wait(250);
cy.toggleSwitch('refresh-tokens').wait(1000);
win.localStorage.clear();

cy.get('[data-cy=get-token]')
.click()
Expand Down
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ <h3>Last error</h3>
_self.auth0
.getTokenSilently({ ignoreCache: !_self.useCache })
.then(function(token) {
_self.access_tokens = [token];
_self.access_tokens.push(token);
_self.error = null;

auth0.isAuthenticated().then(function(isAuthenticated) {
Expand Down

0 comments on commit f40313e

Please sign in to comment.