Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
eyes.it('should have appearance light', async () => {
const storyUrl = createStoryUrl({kind:storySettings.kind, story:storySettings.story, withExamples:true});
await browser.get(storyUrl);
driver = floatingHelperTestkitFactory({ dataHook: 'story-floating-helper-light' });
await waitForVisibilityOf(driver.element(), 'Cannot find FloatingHelper');
await scrollToElement($('[data-hook=appearance-light-example-container]'));
});
});
eyes.it('should not break design', async () => {
const dataHook = 'badge-variations';
const element = byDataHook(dataHook);
await waitForVisibilityOf(element, `Cannot find ${dataHook}`);
await scrollToElement(element);
});
});