mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Ignoring ChunkLoadError because this occurs only on CircleCI.
This commit is contained in:
parent
90a14c3dc0
commit
ed14dd5976
3 changed files with 9 additions and 2 deletions
|
|
@ -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 || {};
|
||||
|
|
|
|||
|
|
@ -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', {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue