You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
805 B
JavaScript
27 lines
805 B
JavaScript
// Copyright (C) 2020 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
require('./commands');
|
|
require('./commands_projects');
|
|
require('@cypress/code-coverage/support');
|
|
require('cypress-plugin-tab');
|
|
|
|
before(() => {
|
|
if (Cypress.browser.family !== 'chromium') {
|
|
cy.visit('/');
|
|
cy.get('.ant-modal-body').within(() => {
|
|
cy.get('.ant-modal-confirm-title').should('contain', 'Unsupported platform detected');
|
|
cy.get('.ant-modal-confirm-btns').contains('OK').click();
|
|
});
|
|
}
|
|
});
|
|
|
|
const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/;
|
|
Cypress.on('uncaught:exception', (err) => {
|
|
if (resizeObserverLoopErrRe.test(err.message)) {
|
|
// the exception is generated by cypress in some browsers
|
|
return false;
|
|
}
|
|
});
|