changed max value of whitelisted
This commit is contained in:
parent
057092cd92
commit
b40c9b76b3
14
r.js
14
r.js
|
@ -1,14 +0,0 @@
|
|||
const Nifty = require('./pages/Nifty.js').Nifty;
|
||||
const Utils = require('./utils/Utils.js').Utils;
|
||||
//import {WALLET} from './utils/constants.js'
|
||||
|
||||
//let a=WALLET;
|
||||
//run();
|
||||
async function run()
|
||||
{
|
||||
let wallet = await
|
||||
await Utils.getWalletInstance(1);
|
||||
|
||||
console.log(wallet.URL)
|
||||
console.log(wallet.constructor.name)
|
||||
}
|
|
@ -279,15 +279,15 @@ test.describe('e2e test for TokenWizard2.0/DutchAuctionCrowdsale. v2.8.1 ', asyn
|
|||
return await assert.equal(result, 0, "Test FAILED. Wizard step#3: User is NOT able to bulk delete all whitelisted addresses");
|
||||
});
|
||||
|
||||
test.it('Wizard step#3: User is able to download CSV file with more than 60 whitelisted addresses',
|
||||
test.it('Wizard step#3: User is able to download CSV file with more than 50 whitelisted addresses',
|
||||
async function () {
|
||||
let fileName = "./public/whitelistedAddresses61.csv";
|
||||
let result = await tierPage.uploadWhitelistCSVFile(fileName)
|
||||
&& await wizardStep3.clickButtonOk();
|
||||
let result = await tierPage.uploadWhitelistCSVFile(fileName);
|
||||
|
||||
return await assert.equal(result, true, 'Test FAILED. Wizard step#3: User is NOT able to download CVS file with whitelisted addresses');
|
||||
});
|
||||
|
||||
test.it('Wizard step#3: Alert present if number of whitelisted addresses greater 60 ',
|
||||
test.it('Wizard step#3: Alert present if number of whitelisted addresses greater 50 ',
|
||||
async function () {
|
||||
let result = await reservedTokensPage.waitUntilShowUpPopupConfirm(100)
|
||||
&& await reservedTokensPage.clickButtonOk();
|
||||
|
@ -296,7 +296,7 @@ test.describe('e2e test for TokenWizard2.0/DutchAuctionCrowdsale. v2.8.1 ', asyn
|
|||
|
||||
test.it('Wizard step#3: Number of added whitelisted addresses is correct, data is valid',
|
||||
async function () {
|
||||
let shouldBe = 60;
|
||||
let shouldBe = 50;
|
||||
let inReality = await tierPage.amountAddedWhitelist();
|
||||
return await assert.equal(shouldBe, inReality, "Test FAILED. Wizard step#3: Number of added whitelisted addresses is NOT correct");
|
||||
|
||||
|
|
|
@ -360,20 +360,19 @@ test.describe('e2e test for TokenWizard2.0/MintedCappedCrowdsale. v2.8.1 ', asyn
|
|||
async function () {
|
||||
let fileName = "./public/whitelistedAddresses61.csv";
|
||||
let result = await tierPage.uploadWhitelistCSVFile(fileName);
|
||||
await wizardStep3.clickButtonOk();
|
||||
return await assert.equal(result, true, 'Test FAILED. Wizard step#3: User is NOT able to download CVS file with whitelisted addresses');
|
||||
});
|
||||
|
||||
test.it('Wizard step#3: Alert present if number of whitelisted addresses greater 60 ',
|
||||
test.it('Wizard step#3: Alert present if number of whitelisted addresses greater 50 ',
|
||||
async function () {
|
||||
let result = await reservedTokensPage.waitUntilShowUpPopupConfirm(100)
|
||||
&& await reservedTokensPage.clickButtonOk();
|
||||
let result = await tierPage.waitUntilShowUpPopupConfirm(100)
|
||||
&& await wizardStep3.clickButtonOk();
|
||||
return await assert.equal(result, true, "Test FAILED.ClearAll button is NOT present");
|
||||
});
|
||||
|
||||
test.it('Wizard step#3: Number of added whitelisted addresses is correct, data is valid',
|
||||
async function () {
|
||||
let shouldBe = 60;
|
||||
let shouldBe = 50;
|
||||
let inReality = await tierPage.amountAddedWhitelist();
|
||||
return await assert.equal(shouldBe, inReality, "Test FAILED. Wizard step#3: Number of added whitelisted addresses is NOT correct");
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ test.describe('POA token-wizard. Test How many Whitelisted addresses for Dutch',
|
|||
let driver;
|
||||
let Owner;
|
||||
|
||||
let metaMask;
|
||||
let wallet;
|
||||
let welcomePage;
|
||||
let wizardStep1;
|
||||
let wizardStep2;
|
||||
|
@ -51,7 +51,7 @@ test.describe('POA token-wizard. Test How many Whitelisted addresses for Dutch',
|
|||
let whitelistedAddresses;
|
||||
const scenario = './scenarios/scenarioWhitelistDutch.json';
|
||||
|
||||
const amountWhitelisted = 60;
|
||||
const amountWhitelisted = 50;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -66,10 +66,11 @@ test.describe('POA token-wizard. Test How many Whitelisted addresses for Dutch',
|
|||
logger.info("Owner = " + Owner.account);
|
||||
logger.info("Owner's balance = " + await Utils.getBalance(Owner) / 1e18 + " Eth");
|
||||
|
||||
metaMask = new MetaMask(driver);
|
||||
await metaMask.activate();//return activated Metamask and empty page
|
||||
wallet = await Utils.getWalletInstance(driver);
|
||||
await wallet.activate();//return activated Wallet and empty page
|
||||
await Owner.setWalletAccount();
|
||||
|
||||
|
||||
welcomePage = new WizardWelcome(driver, startURL);
|
||||
wizardStep1 = new WizardStep1(driver);
|
||||
wizardStep2 = new WizardStep2(driver);
|
||||
|
@ -151,6 +152,7 @@ test.describe('POA token-wizard. Test How many Whitelisted addresses for Dutch',
|
|||
let investor = user;
|
||||
assert.equal(await investor.setWalletAccount(), true, "Can not set Metamask account");
|
||||
let contribution = user.minCap;
|
||||
if (contribution === 0) contribution = user.maxCap/2;
|
||||
|
||||
let result = await investor.openInvestPage(crowdsale)
|
||||
&& await investor.contribute(contribution);
|
||||
|
|
|
@ -51,7 +51,7 @@ test.describe('POA token-wizard. Test MintedCappedCrowdsale', async function ()
|
|||
let whitelistedAddresses;
|
||||
const scenario = './scenarios/scenarioWhitelistMinted.json';
|
||||
|
||||
const amountWhitelisted = 61;
|
||||
const amountWhitelisted = 50;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -101,7 +101,7 @@ test.describe('POA token-wizard. Test MintedCappedCrowdsale', async function ()
|
|||
let owner = Owner;
|
||||
crowdsale = await Utils.getMintedCrowdsaleInstance(scenario);
|
||||
whitelistedAddresses = await Utils.generateCSVWhitelistedAddresses(amountWhitelisted);
|
||||
|
||||
//whitelistedAddresses = './whitelistedAddressesCSV/whitelistedAddresses50_1533061944525'
|
||||
assert.equal(await owner.setWalletAccount(), true, "Can not set Metamask account");
|
||||
|
||||
let result = await owner.createMintedCappedCrowdsale(crowdsale, false, "", true, whitelistedAddresses + ".csv");
|
||||
|
|
|
@ -120,7 +120,7 @@ class Utils {
|
|||
let provider = await Utils.getProviderUrl(user.networkID);
|
||||
let web3 = await new Web3(new Web3.providers.HttpProvider(provider));
|
||||
let account0 = await web3.eth.getAccounts().then((accounts) => {
|
||||
return accounts[7];
|
||||
return accounts[0];
|
||||
});
|
||||
|
||||
logger.info("Send " + amount + " Eth from " + account0 + " to " + user.account);
|
||||
|
|
Loading…
Reference in New Issue