diff --git a/.travis.yml b/.travis.yml index 5df248c..52822ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,14 @@ language: node_js addons: apt: packages: - - libgconf-2-4 + - libgconf-2-4 cache: + # Caches $HOME/.npm when npm ci is default script command + # Caches node_modules in all other cases + npm: true directories: - - ~/.npm + # we also need to cache folder with Cypress binary + - ~/.cache notifications: email: false node_js: '8' diff --git a/cypress/integration/commands.spec.js b/cypress/integration/commands.spec.js index 15efba3..7b1c95a 100644 --- a/cypress/integration/commands.spec.js +++ b/cypress/integration/commands.spec.js @@ -40,7 +40,7 @@ describe('dom-testing-library commands', () => { }) it('getByText in container', () => { - cy.get('#nested').then(subject => { + return cy.get('#nested').then(subject => { cy.getByText('Button Text', {container: subject}).click() }) })