本文整理汇总了TypeScript中coveo-search-ui.get函数的典型用法代码示例。如果您正苦于以下问题:TypeScript get函数的具体用法?TypeScript get怎么用?TypeScript get使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: it
it('should still be accessible when search has been opened', async done => {
const facetElement = getFacetElement();
getFacetColumn().appendChild(facetElement.el);
await afterDeferredQuerySuccess();
(get(facetElement.el) as Facet).facetSearch.focus();
await afterDelay(500);
(get(facetElement.el) as Facet).facetSearch.dismissSearchResults();
await afterDelay(500);
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});
示例2: it
it("should be accessible when there's text", async done => {
await afterQuerySuccess();
(get(queryBox) as Querybox).setText('test');
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});
示例3: it
it('should be accessible in settings menu', async done => {
const preferencesPanelElement = $$('div', { className: Component.computeCssClassName(PreferencesPanel) });
const settingsElement = testSettingsElement(preferencesPanelElement.el);
await afterQuerySuccess();
(get(settingsElement.el) as Settings).open();
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});
示例4: it
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();
});
示例5: it
it('should be accessible when opened', async done => {
const shareQueryElement = $$('div', {
className: Component.computeCssClassName(ShareQuery)
});
testSettingsElement(shareQueryElement.el);
await afterQuerySuccess();
(get(shareQueryElement.el) as ShareQuery).open();
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});
示例6: it
it('should be accessible when opened', async done => {
const quickviewElement = $$('div', {
className: Component.computeCssClassName(Quickview)
});
testResultElement(quickviewElement.el);
await afterQuerySuccess();
(get(document.querySelector(`.${Component.computeCssClassName(Quickview)}`)) as Quickview).open();
await afterDelay(500);
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});
示例7: it
it('should be accessible when opened', async done => {
const cardOverlayElement = $$('div', {
className: Component.computeCssClassName(CardOverlay)
});
testResultElement(cardOverlayElement.el);
await afterQuerySuccess();
const cardOverlayInDocument = $$(getRoot()).find(`.${Component.computeCssClassName(CardOverlay)}`);
const cardOverlayInstance = get(cardOverlayInDocument as HTMLElement) as CardOverlay;
cardOverlayInstance.openOverlay();
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});
示例8: it
it('should be accessible for simple filter', async done => {
const breadcrumbElement = getBreadcrumbElement();
const simpleFilterElement = $$('div', {
className: Component.computeCssClassName(SimpleFilter),
'data-field': '@objecttype'
});
getResultsColumn().appendChild(breadcrumbElement.el);
getResultsColumn().appendChild(simpleFilterElement.el);
await afterQuerySuccess();
const simpleFilter = get(simpleFilterElement.el) as SimpleFilter;
simpleFilter.selectValue('Board', true);
await afterDeferredQuerySuccess();
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});