Update governenace e2e tests to fit latest governance dapp updates
This commit is contained in:
parent
91546c01f2
commit
2596502940
File diff suppressed because it is too large
Load Diff
|
@ -15,7 +15,7 @@
|
|||
"path": "^0.12.7",
|
||||
"poa-dapps-keys-generation": "github:poanetwork/poa-dapps-keys-generation#e7577427fd28c6e9c52c2b10572cda6128b21ede",
|
||||
"poa-dapps-validators": "github:poanetwork/poa-dapps-validators#36df0084fb361e81430552ff1b1953b9365482ea",
|
||||
"poa-dapps-voting": "github:poanetwork/poa-dapps-voting#de826c19fa7bc0d79906392f8fd2ca58e99ebe69",
|
||||
"poa-dapps-voting": "github:poanetwork/poa-dapps-voting#3b5a2a37a7f2ecab7801d702552751702570a655",
|
||||
"selenium-webdriver": "3.6.0",
|
||||
"toml": "^2.3.3",
|
||||
"toml-js": "0.0.8",
|
||||
|
|
|
@ -4,11 +4,11 @@ const webdriver = require('selenium-webdriver'),
|
|||
firefox = require('selenium-webdriver/firefox'),
|
||||
by = require('selenium-webdriver/lib/by');
|
||||
|
||||
const newBallotButton = by.By.xpath("//*[@id=\"root\"]/section/header/div/div[1]/a[4]");
|
||||
const keysBallotType = by.By.xpath("//*[@id=\"root\"]/section/div/section/form/div[1]/div[1]/div[1]");
|
||||
const addKeyType = by.By.xpath("//*[@id=\"root\"]/section/div/section/form/div[2]/div[2]/div[1]/div[1]/div/label");
|
||||
const miningKeyType = by.By.xpath("//*[@id=\"root\"]/section/div/section/form/div[2]/div[2]/div[2]/div[1]/div/label");
|
||||
const activeTab = by.By.xpath("//*[@id=\"root\"]/section/header/div/div[1]/a[2]")
|
||||
const newBallotButton = by.By.xpath("//*[@id=\"root\"]/div/header/div/div/a");
|
||||
const keysBallotType = by.By.xpath("//*[@id=\"root\"]/div/section/section/form/div[2]/div[2]/div[1]/div[1]/div/label");
|
||||
const addKeyType = by.By.xpath("//*[@id=\"root\"]/div/section/section/form/div[2]/div[2]/div[1]/div[1]/div/label");
|
||||
const miningKeyType = by.By.xpath("//*[@id=\"root\"]/div/section/section/form/div[2]/div[2]/div[2]/div[1]/div/label");
|
||||
const activeTab = by.By.xpath("//*[@id=\"root\"]/div/header/div/div/div/a[2]/span")
|
||||
|
||||
//validator data
|
||||
const fullNameInput = by.By.xpath("//*[@id=\"full-name\"]");
|
||||
|
@ -20,18 +20,18 @@ const licenseIdInput = by.By.xpath("//*[@id=\"license-id\"]");
|
|||
const licenseExpirationInput = by.By.xpath("//*[@id=\"license-expiration\"]");
|
||||
|
||||
//voting data
|
||||
const descriptionInput = by.By.xpath("//*[@id=\"root\"]/section/div/section/form/div[2]/div[1]/div/textarea");
|
||||
const descriptionInput = by.By.xpath("//*[@id=\"ballot-description\"]");
|
||||
const endTimeInput = by.By.xpath("//*[@id=\"datetime-local\"]");
|
||||
const affectedKeyInput = by.By.xpath("//*[@id=\"key\"]");
|
||||
const miningKeyInput = by.By.xpath("//*[@id=\"root\"]/section/div/section/form/div[2]/div[4]/div/div[2]/div/div/div");
|
||||
const miningKeyInput = by.By.xpath("//*[@id=\"root\"]/div/section/section/form/div[2]/div[2]/div[2]/div[1]/div/label");
|
||||
const newMiningKeyXpath = by.By.xpath("//*[@id=\"react-select-2--option-0\"]");
|
||||
const addBallotButton = by.By.xpath("//*[@id=\"root\"]/section/div/section/form/div[2]/button");
|
||||
const addBallotButton = by.By.xpath("//*[@id=\"root\"]/div/section/section/form/div[2]/div[5]/button");
|
||||
const alertOKButton = by.By.xpath("/html/body/div[2]/div/div[10]/button[1]");
|
||||
|
||||
const yesButton = by.By.xpath("//*[@id=\"root\"]/section/div[2]/section/div[1]/div[2]/div[2]/button");
|
||||
const finalizeButton = by.By.xpath("//*[@id=\"root\"]/section/div[2]/section/div[1]/div[4]/div[1]/button");
|
||||
const yesButtonOnActivePage = by.By.xpath("//*[@id=\"root\"]/section/div[2]/section/div[1]/div[2]/div[2]/button");
|
||||
const finalizeButtonOnActivePage = by.By.xpath("//*[@id=\"root\"]/section/div[2]/section/div[1]/div[4]/div[1]/button");
|
||||
const yesButton = by.By.xpath("//*[@id=\"root\"]/div/section/section/div/div[2]/div[2]/button");
|
||||
const finalizeButton = by.By.xpath("//*[@id=\"root\"]/div/section/section/div/div[4]/button");
|
||||
const yesButtonOnActivePage = by.By.xpath("//*[@id=\"root\"]/div/section/section/div/div[2]/div[2]/button");
|
||||
const finalizeButtonOnActivePage = by.By.xpath("//*[@id=\"root\"]/div/section/section/div/div[4]/button");
|
||||
|
||||
class Voting extends page.Page {
|
||||
constructor(driver,URL){
|
||||
|
|
|
@ -84,7 +84,7 @@ const local = {
|
|||
fs.writeFileSync(dappHelpers, dappHelpersContent);
|
||||
|
||||
// Change some constants
|
||||
const dappConstants = `${constants.pathToGovernanceDAppRepo}/src/constants.js`;
|
||||
const dappConstants = `${constants.pathToGovernanceDAppRepo}/src/utils/constants.js`;
|
||||
let dappConstantsContent = fs.readFileSync(dappConstants, 'utf8');
|
||||
dappConstantsContent = dappConstantsContent.replace('constants.minBallotDurationInDays = 2', 'constants.minBallotDurationInDays = 0');
|
||||
dappConstantsContent = dappConstantsContent.replace('constants.startTimeOffsetInMinutes = 5', 'constants.startTimeOffsetInMinutes = 1');
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit b0fc8789850ef44f0eb0c277748415d3d194e94a
|
||||
Subproject commit 862c6e7b48f7a803e0282f05e90287b70b32af2a
|
Loading…
Reference in New Issue