Skip to content

Commit acd176e

Browse files
committed
chore: remove bootstraping test
1 parent 7fc1110 commit acd176e

File tree

2 files changed

+0
-105
lines changed

2 files changed

+0
-105
lines changed

tests/govtool-frontend/playwright/tests/5-proposal-functionality/proposalFunctionality.dRep.spec.ts

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -273,70 +273,3 @@ test.describe("Check voting power", () => {
273273
expect(balance, "Retirement deposit not returned").toBeGreaterThan(500);
274274
});
275275
});
276-
277-
test.describe("Bootstrap phase", () => {
278-
test("5L. Should restrict dRep votes to Info Governance actions During Bootstrapping Phase", async ({
279-
browser,
280-
}) => {
281-
await allure.description(
282-
"Skipping this test as bootstrapping is no longer applicable."
283-
);
284-
test.skip();
285-
const voteBlacklistOptions = Object.keys(
286-
BootstrapGovernanceActionType
287-
).filter((option) => option !== GovernanceActionType.InfoAction);
288-
289-
await Promise.all(
290-
voteBlacklistOptions.map(async (voteBlacklistOption) => {
291-
const dRepPage = await createNewPageWithWallet(browser, {
292-
storageState: ".auth/dRep01.json",
293-
wallet: dRep01Wallet,
294-
});
295-
296-
await dRepPage.route("**/epoch/params", async (route) => {
297-
// Fetch the original response from the server
298-
const response = await route.fetch();
299-
const json = await response.json();
300-
301-
// update protocol major version
302-
json["protocol_major"] = 9;
303-
await route.fulfill({
304-
status: 200,
305-
contentType: "application/json",
306-
body: JSON.stringify(json),
307-
});
308-
});
309-
310-
const governanceActionsPage = new GovernanceActionsPage(dRepPage);
311-
await governanceActionsPage.goto();
312-
313-
// assert to wait until proposal cards are visible
314-
await expect(dRepPage.getByTestId("voting-power-chips")).toBeVisible({
315-
timeout: 60_000,
316-
});
317-
// wait until the loading button is hidden
318-
await expect(dRepPage.getByTestId("to-vote-tab")).toBeVisible({
319-
timeout: 60_000,
320-
});
321-
322-
const governanceActionDetailsPage =
323-
await governanceActionsPage.viewFirstProposalByGovernanceAction(
324-
voteBlacklistOption as GovernanceActionType
325-
);
326-
327-
if (governanceActionDetailsPage) {
328-
await expect(
329-
dRepPage.getByTestId("governance-action-details-card-header")
330-
).toBeVisible({ timeout: 60_000 });
331-
await expect(
332-
governanceActionDetailsPage.yesVoteRadio
333-
).not.toBeVisible();
334-
await expect(
335-
governanceActionDetailsPage.contextBtn
336-
).not.toBeVisible();
337-
await expect(governanceActionDetailsPage.voteBtn).not.toBeVisible();
338-
}
339-
})
340-
);
341-
});
342-
});

tests/govtool-frontend/playwright/tests/6-miscellaneous/miscellaneous.spec.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -103,44 +103,6 @@ test("6M. Should navigate between footer links", async ({ page, context }) => {
103103
await expect(helpUrl).toHaveURL(HELP_DOC_URL);
104104
});
105105

106-
test("6N. Should Warn users that they are in bootstrapping phase via banner", async ({
107-
page,
108-
context,
109-
}) => {
110-
await allure.description(
111-
"Skipping this test as bootstrapping is no longer applicable."
112-
);
113-
test.skip();
114-
await page.route("**/epoch/params", async (route) => {
115-
// Fetch the original response from the server
116-
const response = await route.fetch();
117-
const json = await response.json();
118-
119-
// update protocol major version
120-
json["protocol_major"] = 9;
121-
await route.fulfill({
122-
status: 200,
123-
contentType: "application/json",
124-
body: JSON.stringify(json),
125-
});
126-
});
127-
128-
const responsePromise = page.waitForResponse("**/epoch/params");
129-
await page.goto("/");
130-
131-
await responsePromise;
132-
133-
await expect(page.getByTestId("system-bootstrapping-warning")).toBeVisible({
134-
timeout: 60_000,
135-
});
136-
137-
const [bootstrap] = await Promise.all([
138-
context.waitForEvent("page"),
139-
page.getByTestId("system-bootstrapping-warning-link").click(),
140-
]);
141-
await expect(bootstrap).toHaveURL(BOOTSTRAP_DOC_URL);
142-
});
143-
144106
test("6O. Should display proper network name", async ({ page }) => {
145107
await page.route("**/network/metrics", async (route) => {
146108
// Fetch the original response from the server

0 commit comments

Comments
 (0)