Skip to content

Commit

Permalink
test: update api test
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Jul 31, 2024
1 parent 943e397 commit 210ff8a
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 17 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

16 changes: 8 additions & 8 deletions test/e2e/api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ test.describe(
});

sinon.assert.calledOnce(callback);
expect(response.status()).toMatchSnapshotWithArray("response status");
expect(response.status()).toBe(200);

expect(
consoleMessages.map((message) => message.text()),
Expand All @@ -374,7 +374,7 @@ test.describe(
});

sinon.assert.calledOnce(callback);
expect(response.status()).toMatchSnapshotWithArray("response status");
expect(response.status()).toBe(200);

expect(
consoleMessages.map((message) => message.text()),
Expand Down Expand Up @@ -485,7 +485,7 @@ test.describe(
},
);

expect(response.status()).toMatchSnapshotWithArray("response status");
expect(response.status()).toBe(200);

expect(
consoleMessages.map((message) => message.text()),
Expand Down Expand Up @@ -524,7 +524,7 @@ test.describe(
waitUntil: "networkidle0",
});

expect(response.status()).toMatchSnapshotWithArray("response status");
expect(response.status()).toBe(200);

expect(
consoleMessages.map((message) => message.text()),
Expand Down Expand Up @@ -561,7 +561,7 @@ test.describe(
waitUntil: "networkidle0",
});

expect(response.status()).toMatchSnapshotWithArray("response status");
expect(response.status()).toBe(200);

expect(
consoleMessages.map((message) => message.text()),
Expand Down Expand Up @@ -598,7 +598,7 @@ test.describe(
waitUntil: "networkidle0",
});

expect(response.status()).toMatchSnapshotWithArray("response status");
expect(response.status()).toBe(200);

expect(
consoleMessages.map((message) => message.text()),
Expand Down Expand Up @@ -639,7 +639,7 @@ test.describe(
},
);

expect(response.status()).toMatchSnapshotWithArray("response status");
expect(response.status()).toBe(200);

expect(
consoleMessages.map((message) => message.text()),
Expand Down Expand Up @@ -764,7 +764,7 @@ test.describe(

expect(webSocketRequests[0].url).toMatchSnapshotWithArray("url");

expect(response.status()).toMatchSnapshotWithArray("response status");
expect(response.status()).toBe(200);

expect(
// net::ERR_NAME_NOT_RESOLVED can be multiple times
Expand Down

0 comments on commit 210ff8a

Please sign in to comment.