Skip to content

Commit

Permalink
e2e test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
john681611 committed Sep 18, 2023
1 parent e1a42dc commit c4b1d06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const SearchBar = () => {
});
}}
label={
<Button primary onSubmit={onSubmit}>
<Button id="SearchButton" primary onSubmit={onSubmit}>
<Icon name="search" />
Search
</Button>
Expand Down
2 changes: 1 addition & 1 deletion application/frontend/src/test/basic-e2etest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('App.js', () => {
await page.goto('http://localhost:5000');
await page.waitForSelector('#SearchBar');
const text = await page.$eval('#SearchBar', (e) => e.textContent);
expect(text).toContain('Topic text');
expect(text).toContain('Search');
});

it('can search for random strs', async () => {
Expand Down

0 comments on commit c4b1d06

Please sign in to comment.