-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1217 from IntersectMBO/fix/proposal-submission-wa…
…llet-issue Fix/proposal submission wallet issue
- Loading branch information
Showing
13 changed files
with
162 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...d/playwright/tests/7-proposal-submission/proposalSubmissionFunctionality.proposal.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import environments from "@constants/environments"; | ||
import { createTempUserAuth } from "@datafactory/createAuth"; | ||
import { test } from "@fixtures/walletExtension"; | ||
import { setAllureEpic } from "@helpers/allure"; | ||
import { createNewPageWithWallet } from "@helpers/page"; | ||
import { waitForTxConfirmation } from "@helpers/transaction"; | ||
import ProposalSubmissionPage from "@pages/proposalSubmissionPage"; | ||
import { expect } from "@playwright/test"; | ||
import { IProposalForm, ProposalType } from "@types"; | ||
import walletManager from "lib/walletManager"; | ||
|
||
test.beforeEach(async () => { | ||
await setAllureEpic("7. Proposal submission"); | ||
}); | ||
|
||
test("7H. should submit a proposal", async ({ page, browser }, testInfo) => { | ||
test.setTimeout(testInfo.timeout + environments.txTimeOut); | ||
|
||
const wallet = await walletManager.popWallet("proposalSubmission"); | ||
|
||
const tempUserAuth = await createTempUserAuth(page, wallet); | ||
|
||
const userPage = await createNewPageWithWallet(browser, { | ||
storageState: tempUserAuth, | ||
wallet, | ||
}); | ||
|
||
const proposalSubmissionPage = new ProposalSubmissionPage(userPage); | ||
await proposalSubmissionPage.goto(); | ||
|
||
await userPage.getByTestId(`${ProposalType.info}-radio`).click(); | ||
await proposalSubmissionPage.continueBtn.click(); | ||
|
||
const proposal: IProposalForm = | ||
proposalSubmissionPage.generateValidProposalFormFields(ProposalType.info); | ||
|
||
await proposalSubmissionPage.register({ ...proposal }); | ||
|
||
await expect(proposalSubmissionPage.registrationSuccessModal).toBeVisible({ | ||
timeout: 10_000, | ||
}); | ||
|
||
await waitForTxConfirmation(userPage); | ||
}); |
92 changes: 0 additions & 92 deletions
92
...rontend/playwright/tests/7-proposal-submission/proposalSubmissionFunctionality.tx.spec.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.