Skip to content

Commit 4aed3db

Browse files
committed
chore: update outcome filter order
1 parent 036e473 commit 4aed3db

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/govtool-frontend/playwright/lib/helpers/transaction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export async function waitForTxConfirmation(
7777
.getByTestId("alert-warning")
7878
.getByText("Transaction in progress", { exact: false })
7979
).toBeVisible({
80-
timeout: 16_000,
80+
timeout: 60_000,
8181
});
8282
const url = (await transactionStatusPromise).url();
8383
const regex = /\/transaction\/status\/([^\/]+)$/;
@@ -90,7 +90,7 @@ export async function waitForTxConfirmation(
9090
await pollTransaction(transactionHash);
9191
await expect(
9292
page.getByText("In Progress", { exact: true }).first() //FIXME: Only one element needs to be displayed
93-
).not.toBeVisible({ timeout: 20_000 });
93+
).not.toBeVisible({ timeout: 60_000 });
9494
}
9595
} catch (error) {
9696
Logger.fail(error.message);

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,18 +208,18 @@ test("9C_2. Should sort Governance Action Type on outcomes page", async ({
208208
test.slow();
209209

210210
const outcomePage = new OutComesPage(page);
211-
await outcomePage.goto();
211+
await outcomePage.goto({ sort: "oldestFirst" });
212212

213213
await outcomePage.sortBtn.click();
214214

215215
await outcomePage.sortAndValidate(
216-
SortOption.OldestFirst,
217-
(p1, p2) => p1.expiry_date <= p2.expiry_date
216+
SortOption.NewestFirst,
217+
(p1, p2) => p1.expiry_date >= p2.time
218218
);
219219

220220
await outcomePage.sortAndValidate(
221-
SortOption.NewestFirst,
222-
(p1, p2) => p1.expiry_date >= p2.time
221+
SortOption.OldestFirst,
222+
(p1, p2) => p1.expiry_date <= p2.expiry_date
223223
);
224224

225225
await outcomePage.sortAndValidate(

0 commit comments

Comments
 (0)