How to use the coveo-search-ui.get function in coveo-search-ui

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

github coveo / search-ui / accessibilityTest / AccessibilityAdvancedSearch.ts View on Github external
it('should be accessible', async done => {
      const advancedSearchElement = getAdvancedSearchElement();
      getResultsColumn().appendChild(advancedSearchElement.el);
      await afterQuerySuccess();
      const advancedSearch = get(advancedSearchElement.el) as AdvancedSearch;
      advancedSearch.open();
      const axeResults = await axe.run(getRoot());
      expect(axeResults).toBeAccessible();
      done();
    });
  });
github coveo / search-ui / accessibilityTest / AccessibilityFacet.ts View on Github external
it('search should be accessible', async done => {
      const facetElement = getFacetElement();
      getFacetColumn().appendChild(facetElement.el);
      await afterDeferredQuerySuccess();
      (get(facetElement.el) as Facet).facetSearch.focus();
      await afterDelay(1000);
      const axeResults = await axe.run(getRoot());
      expect(axeResults).toBeAccessible();
      done();
    });
github coveo / search-ui / accessibilityTest / AccessibilityOmnibox.ts View on Github external
const showSuggestions = (omniboxElement: Dom) => {
      get(omniboxElement.el)['magicBox'].inputManager.onfocus();
    };
github coveo / search-ui / accessibilityTest / Testing.ts View on Github external
export const isInit = () => {
  return get(getRoot(), SearchInterface) != null;
};
github coveo / search-ui / accessibilityTest / AccessibilityOmnibox.ts View on Github external
const setText = (omniboxElement: Dom, text: string) => {
      (get(omniboxElement.el) as Omnibox).setText(text);
    };