|
|
|
@ -319,24 +319,24 @@ module.exports = { |
|
|
|
|
// DGIT
|
|
|
|
|
'Should have changes on new workspace #group3': async function (browser: NightwatchBrowser) { |
|
|
|
|
await clickAndCheckLog(browser, 'filePanel:createWorkspace', null, null, 'dgit') |
|
|
|
|
await clickAndCheckLog(browser, 'dGitProvider:status', [[".prettierrc.json",0,2,0], ["README.txt",0,2,0],["contracts/1_Storage.sol",0,2,0],["contracts/2_Owner.sol",0,2,0],["contracts/3_Ballot.sol",0,2,0],["scripts/deploy_with_ethers.ts",0,2,0],["scripts/deploy_with_web3.ts",0,2,0],["scripts/ethers-lib.ts",0,2,0],["scripts/web3-lib.ts",0,2,0],["tests/Ballot_test.sol",0,2,0],["tests/storage.test.js",0,2,0]], null, null) |
|
|
|
|
await clickAndCheckLog(browser, 'dgitApi:status', [[".prettierrc.json",0,2,0], ["README.txt",0,2,0],["contracts/1_Storage.sol",0,2,0],["contracts/2_Owner.sol",0,2,0],["contracts/3_Ballot.sol",0,2,0],["scripts/deploy_with_ethers.ts",0,2,0],["scripts/deploy_with_web3.ts",0,2,0],["scripts/ethers-lib.ts",0,2,0],["scripts/web3-lib.ts",0,2,0],["tests/Ballot_test.sol",0,2,0],["tests/storage.test.js",0,2,0]], null, null) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should stage contract #group3': async function (browser: NightwatchBrowser) { |
|
|
|
|
await clickAndCheckLog(browser, 'dGitProvider:add', null, null, { |
|
|
|
|
await clickAndCheckLog(browser, 'dgitApi:add', null, null, { |
|
|
|
|
filepath: 'contracts/1_Storage.sol' |
|
|
|
|
}) |
|
|
|
|
await clickAndCheckLog(browser, 'dGitProvider:status', [[".prettierrc.json",0,2,0],["README.txt",0,2,0],["contracts/1_Storage.sol",0,2,2],["contracts/2_Owner.sol",0,2,0],["contracts/3_Ballot.sol",0,2,0],["scripts/deploy_with_ethers.ts",0,2,0],["scripts/deploy_with_web3.ts",0,2,0],["scripts/ethers-lib.ts",0,2,0],["scripts/web3-lib.ts",0,2,0],["tests/Ballot_test.sol",0,2,0],["tests/storage.test.js",0,2,0]], null, null) |
|
|
|
|
await clickAndCheckLog(browser, 'dgitApi:status', [[".prettierrc.json",0,2,0],["README.txt",0,2,0],["contracts/1_Storage.sol",0,2,2],["contracts/2_Owner.sol",0,2,0],["contracts/3_Ballot.sol",0,2,0],["scripts/deploy_with_ethers.ts",0,2,0],["scripts/deploy_with_web3.ts",0,2,0],["scripts/ethers-lib.ts",0,2,0],["scripts/web3-lib.ts",0,2,0],["tests/Ballot_test.sol",0,2,0],["tests/storage.test.js",0,2,0]], null, null) |
|
|
|
|
}, |
|
|
|
|
'Should commit changes #group3': async function (browser: NightwatchBrowser) { |
|
|
|
|
await clickAndCheckLog(browser, 'dGitProvider:commit', null, null, { author: { name: 'Remix', email: 'Remix' }, message: 'commit-message' }) |
|
|
|
|
await clickAndCheckLog(browser, 'dGitProvider:log', 'commit-message', null, null) |
|
|
|
|
await clickAndCheckLog(browser, 'dgitApi:commit', null, null, { author: { name: 'Remix', email: 'Remix' }, message: 'commit-message' }) |
|
|
|
|
await clickAndCheckLog(browser, 'dgitApi:log', 'commit-message', null, null) |
|
|
|
|
}, |
|
|
|
|
'Should have git log #group3': async function (browser: NightwatchBrowser) { |
|
|
|
|
await clickAndCheckLog(browser, 'dGitProvider:log', 'commit-message', null, null) |
|
|
|
|
await clickAndCheckLog(browser, 'dgitApi:log', 'commit-message', null, null) |
|
|
|
|
}, |
|
|
|
|
'Should have branches #group3': async function (browser: NightwatchBrowser) { |
|
|
|
|
await clickAndCheckLog(browser, 'dGitProvider:branches', [{ name: 'main' }], null, null) |
|
|
|
|
await clickAndCheckLog(browser, 'dgitApi:branches', [{ name: 'main' }], null, null) |
|
|
|
|
}, |
|
|
|
|
// resolver
|
|
|
|
|
'Should resolve url #group4': async function (browser: NightwatchBrowser) { |
|
|
|
|