Skip to content

Commit

Permalink
fix: Integration test dissociate EC from station (#744)
Browse files Browse the repository at this point in the history
* fix: Integration test dissociate EC from station

* fix: Change integration test station

* fix: e2e bundle logging api responses

* fix: Revert dissociate EC picker
  • Loading branch information
svariant authored Dec 4, 2024
1 parent d2ae337 commit c09b100
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion integration-test/tests/stations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test.setTimeout(100000);
test.describe('Station flow', () => {
// eslint-disable-next-line functional/no-let
let page: Page;
const stationId: string = "99999000013_20";
const stationId: string = "99999000013_17";

test.beforeAll(async ({ browser }) => {
page = await browser.newPage({ storageState: undefined });
Expand Down
12 changes: 8 additions & 4 deletions integration-test/tests/utils/bundleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export async function validateBundle(bundleName: string, bundleType: string) {
}
);
try {
console.log('Validate bundle update error', await responseUpdate.text());
const responseText = await responseUpdate.text();
console.log('Validate bundle update error: ', responseText);
} finally {
expect(responseUpdate.ok).toBeTruthy();
}
Expand Down Expand Up @@ -109,7 +110,8 @@ export async function invalidateAllBundles(bundleName: string, bundleType: Bundl
}
);
if (!responseDelete.ok) {
console.log('Invalidate bundle delete error', await responseDelete.text());
const responseText = await responseDelete.text();
console.log('Invalidate bundle delete error: ', responseText);
}
expect(responseDelete.status === 200 || responseDelete.status === 400).toBeTruthy();

Expand All @@ -130,7 +132,8 @@ export async function invalidateAllBundles(bundleName: string, bundleType: Bundl
}
);
if (!responseUpdate.ok) {
console.log('Invalidate bundle update error', await responseUpdate.text());
const responseText = await responseUpdate.text();
console.log('Invalidate bundle update error: ', responseText);
}
expect(responseUpdate.ok).toBeTruthy();
}
Expand All @@ -146,7 +149,8 @@ export async function deleteAllExpiredBundles(bundleName: string, bundleType: Bu
},
});
try {
console.log('Delete all expired bundles response', await response.text());
const responseText = await response.text();
console.log('Delete all expired bundles response: ', responseText);
} finally {
expect(response.ok).toBeTruthy();
}
Expand Down

0 comments on commit c09b100

Please sign in to comment.