Skip to content

Commit

Permalink
[Client] Extend hearthstone tests since the API seems to be a tad lon…
Browse files Browse the repository at this point in the history
…ger than 5s often
  • Loading branch information
Pewtro committed Oct 7, 2024
1 parent d414f3e commit 9fcee2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/client/src/tests/hs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe.concurrent('smoketest some hs api responses', async () => {
secret: environment.blizzardClientSecret,
});

it('should be able to search for a card back', async ({ expect }) => {
it('should be able to search for a card back', { timeout: 10_000 }, async ({ expect }) => {
const response = await client.sendRequest(hs.cardBackSearch({ locale: 'en_GB' }));
expect(response.data).toBeDefined();
});
Expand All @@ -20,17 +20,17 @@ describe.concurrent('smoketest some hs api responses', async () => {
expect(response.data).toBeDefined();
});

it('should be able to search for a card', async ({ expect }) => {
it('should be able to search for a card', { timeout: 10_000 }, async ({ expect }) => {
const response = await client.sendRequest(hs.cardSearch({ locale: 'en_GB', textFilter: 'fireball' }));
expect(response.data).toBeDefined();
});

it('should be able to fetch a card', async ({ expect }) => {
it('should be able to fetch a card', { timeout: 10_000 }, async ({ expect }) => {
const response = await client.sendRequest(hs.fetchOneCard('52119-arch-villain-rafaam'));
expect(response.data).toBeDefined();
});

it('should be able to fetch a deck', async ({ expect }) => {
it('should be able to fetch a deck', { timeout: 10_000 }, async ({ expect }) => {
const response = await client.sendRequest(
hs.getDeck({ code: 'AAECAQcG+wyd8AKS+AKggAOblAPanQMMS6IE/web8wLR9QKD+wKe+wKz/AL1gAOXlAOalAOSnwMA' }),
);
Expand Down

0 comments on commit 9fcee2f

Please sign in to comment.