INNER CODE UNIT · TypeScript

dismissSamplingOnboardingModal

odigos-io/odigos · frontend/webapp/cypress/functions/index.ts:321

export const dismissSamplingOnboardingModal = () => {
  cy.get('body').then(($body) => {
    if ($body.find(DATA_IDS.SAMPLING_ONBOARDING_BTN_SKIP).length > 0) {
      cy.get(DATA_IDS.SAMPLING_ONBOARDING_BTN_SKIP).click();
    }
  });
};

export const handleExceptions = () => {
  return cy.on('uncaught:exception', (err, runnable) => {
    if (err.message.includes('ResizeObserver loop completed with undelivered notifications')) {
      // returning false here prevents Cypress from failing the test
      return false;
    }
    // we still want to ensure there are no other unexpected errors, so we let them fail the test
  });
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…