Ignoring ChunkLoadError because this occurs only on CircleCI.

This commit is contained in:
Roland 2024-11-28 10:00:42 -07:00
parent 90a14c3dc0
commit ed14dd5976
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
3 changed files with 9 additions and 2 deletions

View file

@ -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 || {};

View file

@ -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', {

View file

@ -57,7 +57,7 @@ describe('<ChannelDownloadForm/>', () => {
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()