-
Notifications
You must be signed in to change notification settings - Fork 951
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missed adding channelName when populating data from SQL resp Signed-off-by: Atsushi Neki <atsushin@fast.au.fujitsu.com> Change-Id: I4805b31fc4eda6f96aca88bad5f3f802e07be717
- Loading branch information
Showing
3 changed files
with
50 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* eslint-disable no-unused-expressions */ | ||
|
||
require('chai').should(); | ||
|
||
describe('Explorer chaincode view', () => { | ||
before(function() { | ||
// runs before all tests in this block | ||
browser.url('http://explorer.mynetwork.com:8080'); | ||
// Login | ||
var userInput = browser.$('#user'); | ||
var passInput = browser.$('#password'); | ||
userInput.setValue('test'); | ||
passInput.setValue('test'); | ||
var signinBtn = browser.$('#root > div > div > div > form > button > span'); | ||
|
||
signinBtn.click(); | ||
browser.pause(1000); | ||
}); | ||
|
||
describe('chaincode list', () => { | ||
it('should have an entry: BE-688', () => { | ||
// Num. of blocks | ||
var ccLink = browser.$( | ||
'#root > div > div:nth-child(1) > div:nth-child(2) > nav > div > ul > li:nth-child(5)' | ||
); | ||
ccLink.click(); | ||
browser.pause(5000); | ||
|
||
var ccName = browser.$( | ||
'#root > div > div > div > div > div > div > div > div.rt-table > div.rt-tbody > div > div > div:nth-child(1)' | ||
); | ||
ccName.getText().should.be.equal('mycc'); | ||
|
||
var ccTxCount = browser.$( | ||
'#root > div > div > div > div > div > div > div > div.rt-table > div.rt-tbody > div > div > div:nth-child(4)' | ||
); | ||
ccTxCount.getText().should.be.equal('5'); | ||
|
||
var ccChName = browser.$( | ||
'#root > div > div > div > div > div > div > div > div.rt-table > div.rt-tbody > div > div > div:nth-child(2)' | ||
); | ||
ccChName.getText().should.be.equal('mychannel'); | ||
}); | ||
}); | ||
}); |
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