Skip to content

Commit 1e039f2

Browse files
committed
refactor: rename skipIfTreasuryAndBootstrapping to skipIfNotInfoAndBootstrapping for clarity
1 parent e5b8898 commit 1e039f2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export async function isBootStrapingPhase() {
2727
return protocolParameterMajorVersion === 9;
2828
}
2929

30-
export async function skipIfTreasuryAndBootstrapping(type: ProposalType) {
30+
export async function skipIfNotInfoAndBootstrapping(type: ProposalType) {
3131
const isBootStraping = await isBootStrapingPhase();
32-
if (type === ProposalType.treasury && isBootStraping) {
32+
if (type !== ProposalType.info && isBootStraping) {
3333
await allure.description(
3434
"This Features will be available only after hardfork."
3535
);

tests/govtool-frontend/playwright/tests/7-proposal-submission/proposalSubmission.loggedin.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { faker } from "@faker-js/faker";
1111
import { test } from "@fixtures/proposal";
1212
import { setAllureEpic } from "@helpers/allure";
1313
import {
14-
skipIfTreasuryAndBootstrapping,
14+
skipIfNotInfoAndBootstrapping,
1515
skipIfNotHardFork,
1616
isBootStrapingPhase,
1717
} from "@helpers/cardano";
@@ -42,7 +42,7 @@ test.describe("Proposal created logged state", () => {
4242
test(`7E_${index + 1}. Should accept valid data in ${type.toLowerCase()} proposal form`, async ({
4343
page,
4444
}) => {
45-
await skipIfTreasuryAndBootstrapping(type);
45+
await skipIfNotInfoAndBootstrapping(type);
4646

4747
test.slow(); // Brute-force testing with 50 random data
4848

@@ -99,7 +99,7 @@ test.describe("Proposal created logged state", () => {
9999
test(`7F_${index + 1}. Should reject invalid data in ${type.toLowerCase()} Proposal form`, async ({
100100
page,
101101
}) => {
102-
await skipIfTreasuryAndBootstrapping(type);
102+
await skipIfNotInfoAndBootstrapping(type);
103103

104104
test.slow(); // Brute-force testing with 50 random data
105105

@@ -129,7 +129,7 @@ test.describe("Proposal created logged state", () => {
129129
page,
130130
wallet,
131131
}) => {
132-
await skipIfTreasuryAndBootstrapping(type);
132+
await skipIfNotInfoAndBootstrapping(type);
133133

134134
const proposalSubmissionPage = new ProposalSubmissionPage(page);
135135
await proposalSubmissionPage.goto();
@@ -183,7 +183,7 @@ test.describe("Proposal created logged state", () => {
183183
test(`7I_${index + 1}. Should valid review submission in ${type.toLowerCase()} Proposal form`, async ({
184184
page,
185185
}) => {
186-
await skipIfTreasuryAndBootstrapping(type);
186+
await skipIfNotInfoAndBootstrapping(type);
187187

188188
const proposalSubmissionPage = new ProposalSubmissionPage(page);
189189
await proposalSubmissionPage.goto();
@@ -250,7 +250,7 @@ test.describe("Proposal created logged state", () => {
250250
test(`7D_${index + 1}. Verify ${type.toLocaleLowerCase()} proposal form`, async ({
251251
page,
252252
}) => {
253-
await skipIfTreasuryAndBootstrapping(type);
253+
await skipIfNotInfoAndBootstrapping(type);
254254

255255
const proposalSubmissionPage = new ProposalSubmissionPage(page);
256256
await proposalSubmissionPage.goto();
@@ -507,7 +507,7 @@ test.describe("Treasury Proposal Draft", () => {
507507
test.use({ storageState: ".auth/proposal07.json", wallet: proposal07Wallet });
508508

509509
test("7M_2. Should edit a treasury proposal draft", async ({ page }) => {
510-
await skipIfTreasuryAndBootstrapping(ProposalType.treasury);
510+
await skipIfNotInfoAndBootstrapping(ProposalType.treasury);
511511

512512
const proposalSubmissionPage = new ProposalSubmissionPage(page);
513513
const { proposalFormValue } = await proposalSubmissionPage.createDraft(

0 commit comments

Comments
 (0)