diff --git a/app/cypress/support/component.js b/app/cypress/support/component.js index e82ee8e3..c229045a 100644 --- a/app/cypress/support/component.js +++ b/app/cypress/support/component.js @@ -20,6 +20,13 @@ import {QueryProvider} from "../../src/hooks/customHooks"; import {TagsProvider} from "../../src/Tags"; import React from "react"; +Cypress.on('uncaught:exception', (err, runnable) => { + if (err.message.includes('ChunkLoadError')) { + return false; // Ignore this error which happens after CircleCI tests. + } + // Otherwise, fail like normal + return true; +}); Cypress.Commands.add('mountWithRouter', (component, options) => { options = options || {}; diff --git a/app/src/components/Channels.cy.js b/app/src/components/Channels.cy.js index 40d09ebb..54d4536a 100644 --- a/app/src/components/Channels.cy.js +++ b/app/src/components/Channels.cy.js @@ -1,7 +1,7 @@ import React from "react"; import {ChannelPage} from "./Channels"; -describe(' Channels Page', () => { +describe('Channels Page', () => { beforeEach(() => { // Do not return directories for these tests. cy.intercept('POST', '**/api/files/search_directories', { diff --git a/app/src/components/Download.cy.js b/app/src/components/Download.cy.js index 27061541..08868d33 100644 --- a/app/src/components/Download.cy.js +++ b/app/src/components/Download.cy.js @@ -57,7 +57,7 @@ describe('', () => { cy.get('#url_input').should('have.attr', 'error'); }); - it('Can choose different options', () => { + it('can choose different options', () => { cy.get('#download_frequency_selector').click() .get('.item').contains('Once').click(); cy.get('#download_frequency_selector').click()