Skip to content

Commit

Permalink
fixFix ResizeObserver loop error
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Apr 4, 2024
1 parent 7619822 commit 6b3687c
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const deleteAllDataSources = () => {

describe('Multi-datasources enabled', () => {
before(() => {
deleteAllDataSources();
localStorage.setItem('opendistro::security::tenant::saved', '""');
localStorage.setItem('home:newThemeModal:show', 'false');
createDataSource();
Expand Down Expand Up @@ -164,6 +165,7 @@ describe('Multi-datasources enabled', () => {
.should('have.value', 'test_permission_ag');
cy.get('[data-test-subj="comboBoxInput"]').focus().type('some_permission');
cy.get('[id="submit"]').click();
closeToast();

// Permission exists on the remote data source
cy.get('[data-text="Customization"]').click();
Expand Down Expand Up @@ -224,10 +226,7 @@ describe('Multi-datasources enabled', () => {
});

it('Checks Roles Tab', () => {
Cypress.on(
'uncaught:exception',
(err) => !err.message.includes('ResizeObserver loop limit exceeded')
);
Cypress.on('uncaught:exception', (err) => !err.message.includes('ResizeObserver'));

cy.visit('http://localhost:5601/app/security-dashboards-plugin#/roles');
cy.contains('h3', 'Roles');
Expand Down

0 comments on commit 6b3687c

Please sign in to comment.