How to use the wix-ui-test-utils/protractor.scrollToElement function in wix-ui-test-utils

To help you get started, we’ve selected a few wix-ui-test-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wix / wix-ui-backoffice / src / components / FloatingHelper / FloatingHelper.e2e.ts View on Github external
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]'));
    });
});
github wix / wix-ui-backoffice / src / components / Badge / Badge.e2e.ts View on Github external
eyes.it('should not break design', async () => {
    const dataHook = 'badge-variations';
    const element = byDataHook(dataHook);
    await waitForVisibilityOf(element, `Cannot find ${dataHook}`);
    await scrollToElement(element);
  });
});