-
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 remote-tracking branch 'upstream/develop' into feature/225-1-5-…
…subgraph-add-reputationToken
- Loading branch information
Showing
88 changed files
with
1,675 additions
and
748 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"baseUrl": "http://localhost:3000/#", | ||
"projectId": "zps4ub", | ||
"experimentalStudio": true, | ||
"viewportWidth": 1920, | ||
"viewportHeight": 1080, | ||
"userAgent": "synpress", | ||
"retries": { "runMode": 0, "openMode": 0 }, | ||
"integrationFolder": "cypress/integration", | ||
"screenshotsFolder": "cypress/screenshots", | ||
"videosFolder": "cypress/videos", | ||
"chromeWebSecurity": true, | ||
"component": { | ||
"componentFolder": "src", | ||
"testFiles": "**/*spec.{js,jsx,ts,tsx}" | ||
}, | ||
"env": { | ||
"coverage": false, | ||
"network": "localhost" | ||
}, | ||
"defaultCommandTimeout": 120000, | ||
"pageLoadTimeout": 120000, | ||
"requestTimeout": 120000 | ||
} | ||
|
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,5 @@ | ||
{ | ||
"extends": "./local.json", | ||
"baseUrl": "https://app.projectdavi.eth.limo/#/homestead" | ||
} | ||
|
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,5 @@ | ||
{ | ||
"extends": "./local.json", | ||
"baseUrl": "https://qa.projectdavi.eth.limo/#/homestead" | ||
} | ||
|
61 changes: 61 additions & 0 deletions
61
apps/davi/cypress/integration/regression/CreateDiscussionTest.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,61 @@ | ||
// | ||
// Filename: CreateDiscussionTest.spec.ts | ||
// | ||
|
||
/// <reference types="cypress" /> | ||
|
||
import LandingPage from '../../support/pageObjects/LandingPage'; | ||
import Guilds from '../../support/pageObjects/Guilds'; | ||
import AnyGuildPage from '../../support/pageObjects/AnyGuildPage'; | ||
import CreateDiscussionPage from '../../support/pageObjects/CreateDiscussionPage'; | ||
import { clickAnywhereToClose, gnosisNetworkGuilds } from '../../utils'; | ||
import { data } from '../../utils/constants' | ||
const url = Cypress.config().baseUrl; | ||
|
||
describe('Check create discussion', () => { | ||
before(() => { | ||
cy.visit(url); | ||
}); | ||
|
||
it('Click connect wallet and choose metamask', () => { | ||
Guilds.clickOpenWalletModalBtn(); | ||
cy.contains('MetaMask').eq(0).click(); | ||
}); | ||
|
||
it('Accept metamask access', () => { | ||
cy.acceptMetamaskAccess().should("be.true"); | ||
clickAnywhereToClose(); | ||
}); | ||
|
||
it('Go to gnosis network', () => { | ||
LandingPage.goToGnosisNetwork(); | ||
}); | ||
|
||
it('Allow gnosis network', () => { | ||
cy.allowMetamaskToAddNetwork() | ||
}); | ||
|
||
it('Allow to switch to gnosis', () => { | ||
cy.allowMetamaskToSwitchNetwork() | ||
}); | ||
|
||
it(`Visit first Guild on Gnosis network`, () => { | ||
LandingPage.goToGuildPage(gnosisNetworkGuilds[0], 0); | ||
AnyGuildPage.checkIfYouAreOnSelectedGuildPage(gnosisNetworkGuilds[0]) | ||
}); | ||
|
||
it('Create Discussion on Gnosis network', () => { | ||
AnyGuildPage.createDiscussion_Button().click() | ||
cy.confirmMetamaskSignatureRequest() | ||
CreateDiscussionPage.enterTitle(data.discussionTitle) | ||
CreateDiscussionPage.enterDiscussionDescription(data.discussionDescription) | ||
CreateDiscussionPage.clickCreateDiscussion() | ||
}); | ||
|
||
it('Check if newly created discussion is showing', () => { | ||
CreateDiscussionPage.clickNewDiscussion(data.discussionTitle) | ||
AnyGuildPage.checkDiscussionName(data.discussionTitle) | ||
AnyGuildPage.checkDiscussionDescription(data.discussionDescription) | ||
}); | ||
|
||
}); |
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
30 changes: 30 additions & 0 deletions
30
apps/davi/cypress/support/pageObjects/CreateDiscussionPage.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,30 @@ | ||
// | ||
// Filename: CreateDiscussionPage.ts | ||
// | ||
|
||
class CreateDiscussionPage { | ||
discussionTitle_Field() { return cy.findAllByTestId("create-discussion-title"); } | ||
discussionContent_Field() { return cy.findAllByTestId("proposal-description-input"); } | ||
createDiscussion_Button() { return cy.findAllByTestId("create-proposal-action-button"); } | ||
|
||
enterTitle(title) { | ||
this.discussionTitle_Field().type(title) | ||
} | ||
|
||
enterDiscussionDescription(description) { | ||
this.discussionContent_Field().type(description) | ||
} | ||
|
||
clickCreateDiscussion() { | ||
this.createDiscussion_Button().click() | ||
} | ||
|
||
clickNewDiscussion(discussionName) { | ||
cy.contains(discussionName).click() | ||
} | ||
|
||
}; | ||
|
||
const createDiscussionPage: CreateDiscussionPage = new CreateDiscussionPage(); | ||
|
||
export default createDiscussionPage; |
Oops, something went wrong.