Skip to content

Commit 690f836

Browse files
fix(tests): fix e2e tests for the Typeahead demo (#5644)
1 parent 0b4721d commit 690f836

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cypress/full/typeahead_page_spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ describe('Typeahead demo page test suite', () => {
7575
typeahead.isElementVisible(asyncData, typeahead.cardHeader);
7676
typeahead.isPreviewExist(asyncData, formTemplate);
7777
typeahead.isElementVisible(asyncData, typeahead.inputSelector);
78-
typeahead.isInputHaveAttrs(asyncData, [{ attr: 'placeholder', value: 'Locations loaded with timeout' }]);
78+
typeahead.isInputHaveAttrs(asyncData, [{ attr: 'placeholder', value: 'Locations loaded via observable' }]);
7979
});
8080

81-
it('when user starts to type a name of a State a drop-down with matches is shown, only 7 matches are shown',
81+
it('when user starts to type a name of a State a drop-down with matches is shown, only 20 matches are shown',
8282
() => {
8383
typeahead.clearInputAndSendKeys(asyncData, 'a');
8484
typeahead.isElementVisible(asyncData, typeahead.activeDropdown);
85-
typeahead.isDropdownHasNItems(typeahead.dropdownBtn, 7);
85+
typeahead.isDropdownHasNItems(typeahead.dropdownBtn, 20);
8686
});
8787

8888
it('when user clicks on any item in typeahead drop-down, then typeahead container auto-fills with a selected State',
@@ -436,7 +436,7 @@ describe('Typeahead demo page test suite', () => {
436436
typeahead.isElementVisible(scrollable, typeahead.inputSelector);
437437
});
438438

439-
it.only(`when there are any matches then a drop-down with a list of States matches is shown. user is able to scroll
439+
it(`when there are any matches then a drop-down with a list of States matches is shown. user is able to scroll
440440
down/up to see the matches list`, () => {
441441
typeahead.clearInputAndSendKeys(scrollable, textToInput);
442442
typeahead.isElementVisible(scrollable, typeahead.activeDropdown);

0 commit comments

Comments
 (0)