-
Notifications
You must be signed in to change notification settings - Fork 12
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 #327 from Filipv95/automation/create-proposal-mint…
…-rep-test Create Proposal mint rep test
- Loading branch information
Showing
6 changed files
with
136 additions
and
4 deletions.
There are no files selected for viewing
109 changes: 109 additions & 0 deletions
109
apps/davi/cypress/integration/regression/CreateMintRepProposal.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,109 @@ | ||
// | ||
// Filename: CreateMintRepProposal.spec.ts | ||
// | ||
|
||
/// <reference types="cypress" /> | ||
|
||
import Guilds from '../../support/pageObjects/Guilds'; | ||
import AnyGuildPage from '../../support/pageObjects/AnyGuildPage'; | ||
import LandingPage from '../../support/pageObjects/LandingPage'; | ||
import CreateDiscussionPage from '../../support/pageObjects/CreateDiscussionPage'; | ||
import CreateProposalPage from '../../support/pageObjects/CreateProposalPage'; | ||
import { ACCOUNTS } from '../../utils/constants'; | ||
import { data } from '../../utils/constants' | ||
const url = Cypress.config().baseUrl; | ||
|
||
describe('Check create mint rep proposal', () => { | ||
before(() => { | ||
cy.resetMetamaskAccount() | ||
cy.visit(url); | ||
}); | ||
|
||
it('Click connect wallet and choose metamask', () => { | ||
Guilds.clickOpenWalletModalBtn(); | ||
LandingPage.chooseMetamaskWallet() | ||
}); | ||
|
||
it('Accept metamask access', () => { | ||
cy.acceptMetamaskAccess(false).should("be.true"); | ||
cy.closeModal() | ||
}); | ||
|
||
it(`Visit first Guild on Local network`, () => { | ||
LandingPage.goToFirstGuild() | ||
}); | ||
|
||
it('Check All Discussions page', () => { | ||
AnyGuildPage.goToAllDiscussionPage(); | ||
AnyGuildPage.checkIfYouAreOnAllDiscussionPage(); | ||
}); | ||
|
||
it('Create Discussion on Local network', () => { | ||
AnyGuildPage.createDiscussion_Button().click() | ||
cy.confirmMetamaskSignatureRequest() | ||
CreateDiscussionPage.enterTitle(data.discussionTitle) | ||
CreateDiscussionPage.enterDiscussionDescription(data.discussionDescription) | ||
CreateDiscussionPage.clickCreateDiscussion() | ||
}); | ||
|
||
it('Check All Discussions page', () => { | ||
AnyGuildPage.goToAllDiscussionPage(); | ||
AnyGuildPage.checkIfYouAreOnAllDiscussionPage(); | ||
}); | ||
|
||
it('Check if newly created discussion is showing', () => { | ||
CreateDiscussionPage.clickNewDiscussion(data.discussionTitle) | ||
AnyGuildPage.checkDiscussionName(data.discussionTitle) | ||
AnyGuildPage.checkDiscussionDescription(data.discussionDescription) | ||
}); | ||
|
||
it('Click on create proposal on Discussion Page', () => { | ||
CreateProposalPage.clickOnCreateProposalButton() | ||
cy.confirmMetamaskSignatureRequest() | ||
}); | ||
|
||
it('Check proposal title proposal', () => { | ||
CreateProposalPage.checkProposalTitle(data.discussionTitle) | ||
}); | ||
|
||
it('Edit proposal title and description', () => { | ||
CreateProposalPage.enterProposalTitle(data.proposalTitle) | ||
CreateProposalPage.enterProposalDescription(data.proposalDescription) | ||
}); | ||
|
||
it('Click on add action', () => { | ||
CreateProposalPage.clickAddActionButton() | ||
}); | ||
|
||
it('Click on mint rep action', () => { | ||
CreateProposalPage.clickMintRepActionButton() | ||
}); | ||
|
||
it('Enter Etherum address', () => { | ||
CreateProposalPage.enterTransferEthereumAddress(ACCOUNTS[0].address) | ||
}); | ||
|
||
it('Enter Mint reputation in percentage', () => { | ||
CreateProposalPage.enterMintReputationInPercentage(data.mintRepPercentage) | ||
}); | ||
|
||
it('Click on save mint rep action', () => { | ||
CreateProposalPage.clickSaveMintRepAction() | ||
}); | ||
|
||
it('Click on create proposal on Proposal Page', () => { | ||
CreateProposalPage.clickOnCreateProposal() | ||
}); | ||
|
||
it('Go to all proposals', () => { | ||
AnyGuildPage.goToFirstProposalPage(); | ||
AnyGuildPage.checkIfYouAreOnProposalPage(); | ||
}); | ||
|
||
it('Check if newly created propposal is showing', () => { | ||
CreateProposalPage.clickNewProposal(data.proposalTitle) | ||
AnyGuildPage.checkProposalName(data.proposalTitle) | ||
AnyGuildPage.checkProposalDescription(data.proposalDescription) | ||
}); | ||
|
||
}); |
2 changes: 1 addition & 1 deletion
2
apps/davi/cypress/integration/regression/CreateTranfserProposal.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
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
b5096ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
davi – ./
davi-git-develop-dxgov.vercel.app
davi-dxgov.vercel.app
davi-monorepo-davi.vercel.app
project-davi.dev