Skip to content

Commit

Permalink
test: fix tests to fit new debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed Apr 18, 2024
1 parent c7c0dac commit e3f16e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ async function getComponentElements(canvas) {

async function onTypeFilterComboboxOptionsTest(canvas) {
const { comboboxElement, searchElement } = await getComponentElements(canvas);
await typeText(searchElement, "jjj");
await typeText(searchElement, "jjj", 400);
expect(queryByText(comboboxElement, "Option 1")).toBeNull();
}

async function onSelectExistFilterClearsFilterTest(canvas) {
const { comboboxElement, searchElement } = await getComponentElements(canvas);
await typeText(searchElement, "jjj");
await typeText(searchElement, "jjj", 400);
const cleanSearchButton = getByTestId(
comboboxElement,
getTestId(ComponentDefaultTestId.CLEAN_SEARCH_BUTTON, "combobox-search")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const overviewInteractionSuite = interactionSuite({
});

async function getSearchElement(canvas) {
return await getByTestId(canvas, getTestId(ComponentDefaultTestId.SEARCH, "search"));
return await getByTestId(canvas, getTestId(ComponentDefaultTestId.SEARCH));
}

async function expectElementToBeNaturallyFocused(element) {
Expand Down

0 comments on commit e3f16e6

Please sign in to comment.