Skip to content

Commit

Permalink
fix(e2e-tests): wait for server to be available, formatting and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeechey committed Jun 29, 2024
1 parent cf01077 commit 10eb747
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion telemetry/packages/e2e-tests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
*/
export { Sidebar } from '@hyped/telemetry-ui/app/components/sidebar';

export { useCurrentPod } from '@hyped/telemetry-ui/app/context/pods';
export { useCurrentPod } from '@hyped/telemetry-ui/app/context/pods';
2 changes: 2 additions & 0 deletions telemetry/packages/e2e-tests/tests/sidebar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const getSidebar = async (page: Page): Promise<Frame> => {
url: 'http://localhost:5173/app/index.html',
});
expect(react).toBeTruthy();
// wait until we get a response from the server
await page.waitForResponse('http://localhost:3000/ping');
return react as Frame;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const SetLevitationHeight = ({ podId }: { podId: string }) => {
<Button
data-testid="set-height-button"
className="bg-white hover:bg-gray-200 text-black"
onClick={setLevitationHeight}
onClick={() => void setLevitationHeight()}
>
Set
</Button>
Expand Down
2 changes: 1 addition & 1 deletion telemetry/packages/ui/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit 10eb747

Please sign in to comment.