Skip to content

Commit a4ad276

Browse files
committed
update searchBar test
1 parent e5e1596 commit a4ad276

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

e2e/config/testData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ const categorizeCharacters = (characters: string[], expectedRes: boolean): { cha
1010
};
1111

1212
export const specialCharacters: { character: string; expectedRes: boolean }[] = [
13-
...categorizeCharacters(['%', '*', '(', ')', '-', '[', ']', '{', '}', ';', ':', '"', '|', '~'], true),
14-
...categorizeCharacters(['!', '@', '$', '^', '_', '=', '+', "'", ',', '.', '<', '>', '/', '?', '\\', '`', '&', '#'], false)
13+
...categorizeCharacters(['%', '*', '(', ')', '-', '[', ']', '{', '}', ';', ':', '"', '|', '~'], false),
14+
...categorizeCharacters(['!', '@', '$', '^', '_', '=', '+', "'", ',', '.', '<', '>', '/', '?', '\\', '`', '&', '#'], true)
1515
];

e2e/tests/codeGraph.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ test.describe("Code graph tests", () => {
6262
await codeGraph.selectGraph(GRAPH_ID);
6363
await codeGraph.fillSearchBar(character);
6464
await delay(1000);
65-
expect(await codeGraph.isNotificationError()).toBe(expectedRes);
65+
expect((await codeGraph.getSearchBarInputValue()).includes(character)).toBe(expectedRes);
6666
});
6767
});
6868

0 commit comments

Comments
 (0)