Skip to content

Commit

Permalink
fix broken e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Sep 21, 2020
1 parent 00d7283 commit 9551efe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Then(`it should filter results based on query`, () => {
listOfUrls.should('have.length', 1);

const actualUrlsText = [
'http://opbeans-node:3000/customersPage views: 10Page load duration: 76.3975 ms Select',
'http://opbeans-node:3000/customersPage views: 10Page load duration: 76 ms Select',
];

cy.get('li.euiSelectableListItem')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import {
EuiSelectableTemplateSitewideOption,
EuiTitle,
EuiLoadingSpinner,
EuiHeaderSectionItemButton,
EuiIcon,
} from '@elastic/eui';
import useDebounce from 'react-use/lib/useDebounce';
import React, { useEffect, useState, FormEvent, useCallback } from 'react';
Expand Down Expand Up @@ -176,6 +178,12 @@ export function URLSearch({ onChange: onFilterChange }: Props) {
isLoading={isLoading}
onChange={onChange}
options={items}
popoverButtonBreakpoints={['xs', 's']}
popoverButton={
<EuiHeaderSectionItemButton aria-label={I18LABELS.searchByUrl}>
<EuiIcon type="search" size="m" />
</EuiHeaderSectionItemButton>
}
searchProps={{
placeholder: I18LABELS.searchByUrl,
onInput: onInputChange,
Expand Down

0 comments on commit 9551efe

Please sign in to comment.