Skip to content

Commit a7e043b

Browse files
committed
fix: update outcomeMetadata structure and adjust outcome details test
1 parent 00c83f4 commit a7e043b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/govtool-frontend/playwright/lib/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ export interface outcomeProposal {
291291
}
292292

293293
export interface outcomeMetadata {
294-
authors: any[];
295-
hashAlgorithm: string;
296-
body: outcomeMetadataBody;
294+
metadataStatus: string;
295+
metadataValid: boolean;
296+
data: outcomeMetadataBody;
297297
}
298298

299299
interface outcomeMetadataBody {

tests/govtool-frontend/playwright/tests/9-outcomes/outcomes.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ test.describe("Outcome details dependent test", () => {
7878
return;
7979
}
8080
const data: outcomeMetadata = await response.json();
81-
if (!governanceActionTitle && data.body.title != null) {
82-
governanceActionTitle = data.body.title;
81+
if (!governanceActionTitle && data.data.title != null) {
82+
governanceActionTitle = data.data.title;
8383
}
8484
await route.fulfill({
8585
status: 200,

0 commit comments

Comments
 (0)