Skip to content

Commit a17b0ee

Browse files
committed
fix: country of incorportation and budgetDiscussion auth
1 parent dd28dd6 commit a17b0ee

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/govtool-frontend/playwright/lib/pages/budgetDiscussionSubmissionPage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export default class BudgetDiscussionSubmissionPage {
233233
await this.countryOfIncorporationBtn.click();
234234
await this.page
235235
.getByTestId(
236-
`${proposalOwnership.countryOfIncorportation.toLowerCase()}-button`
236+
`${proposalOwnership.countryOfIncorportation.toLowerCase()}-country-of-incorporation-button`
237237
)
238238
.click();
239239
}
@@ -526,7 +526,7 @@ export default class BudgetDiscussionSubmissionPage {
526526
this.generateValidBudgetProposalInformation();
527527

528528
await this.fillupForm(budgetProposalRequest);
529-
await this.submitBtn.click(); // BUG incorrect test id -> submit-button
529+
await this.submitBtn.click();
530530

531531
// assert to check if the proposal is created and navigated to details page
532532
await expect(this.page.getByTestId("review-version")).toBeVisible({

tests/govtool-frontend/playwright/tests/11-proposal-budget/proposalBudget.dRep.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { test } from "@fixtures/budgetProposal";
33
import { setAllureEpic } from "@helpers/allure";
44
import BudgetDiscussionDetailsPage from "@pages/budgetDiscussionDetailsPage";
55
import { expect } from "@playwright/test";
6-
import { dRep01Wallet } from "@constants/staticWallets";
6+
import { dRep03Wallet } from "@constants/staticWallets";
77
import BudgetDiscussionPage from "@pages/budgetDiscussionPage";
88

99
test.beforeEach(async () => {
@@ -12,8 +12,8 @@ test.beforeEach(async () => {
1212

1313
test.describe("Budget proposal dRep behaviour", () => {
1414
test.use({
15-
storageState: ".auth/dRep01.json",
16-
wallet: dRep01Wallet,
15+
storageState: ".auth/dRep03.json",
16+
wallet: dRep03Wallet,
1717
});
1818

1919
test.describe("Budget proposal voting", () => {
@@ -99,11 +99,11 @@ test.describe("Budget proposal dRep behaviour", () => {
9999
).toBeVisible();
100100

101101
await expect(dRepCommentedCard.getByTestId("given-name")).toHaveText(
102-
dRep01Wallet.givenName
102+
dRep03Wallet.givenName
103103
);
104104

105105
await expect(dRepCommentedCard.getByTestId("drep-id")).toHaveText(
106-
dRep01Wallet.dRepId
106+
dRep03Wallet.dRepId
107107
);
108108
});
109109
});

0 commit comments

Comments
 (0)