Skip to content

Commit

Permalink
fix test and smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Sep 6, 2024
1 parent 4f098a6 commit 5ecf391
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/smoke-test
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ wait_for()
echo "waiting up to $TIMEOUT seconds for app"
start_ts=$(date +%s)
for i in $(seq $TIMEOUT); do
result="$(curl --write-out %{http_code} --insecure --silent --output /dev/null https://localhost)"
result="$(curl --write-out %{http_code} --insecure --silent --output /dev/null https://localhost 2>/dev/null)"
if [[ $result -eq "200" ]]; then
end_ts=$(date +%s)
echo "App available after $((end_ts - start_ts)) seconds"
Expand Down
2 changes: 1 addition & 1 deletion test/components/SideBar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe("<SideBar />", () => {
</RootDispatchContext.Provider>
</RootContext.Provider>);

const selectDataset = await screen.findByRole("combobox") as HTMLSelectElement;
const selectDataset = screen.getAllByRole("combobox")[0] as HTMLSelectElement;
await userEvent.selectOptions(selectDataset, "d2");

expect(dispatch.mock.calls[0][0]).toEqual({
Expand Down

0 comments on commit 5ecf391

Please sign in to comment.