Skip to content

Commit

Permalink
Fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kgpax committed Jan 7, 2024
1 parent d36029e commit f3c60fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webui/src/components/ui/TraceDetail.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ describe('TraceDetail', () => {
const copyAsCurl = within(summary).getByTestId('copy-as-curl');

expect(copyAsCurl).toBeVisible();
expect(copyAsCurl).toHaveTextContent('Mock CopyAsCurlButton component: 2');
expect(copyAsCurl).toHaveTextContent(`Mock CopyAsCurlButton component: ${mockTrace.id}`);
});

it.each([
Expand Down Expand Up @@ -345,7 +345,7 @@ describe('TraceDetail', () => {
const sent = within(requestDetails).getByTestId('sent');

expect(sent).toBeVisible();
expect(sent).toHaveTextContent(`Mock DateTime component: ${1695308938}`);
expect(sent).toHaveTextContent(`Mock DateTime component: ${timestamp}`);
});

it('should display request host', () => {
Expand Down

0 comments on commit f3c60fe

Please sign in to comment.