Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #228 from LiskHQ/216-menu-items-order
Browse files Browse the repository at this point in the history
Change secondary menu options and order - Closes #216
  • Loading branch information
slaweet authored May 17, 2017
2 parents 79a7e42 + c37ba60 commit 9f3e974
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
20 changes: 10 additions & 10 deletions src/app/components/header/header.pug
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ md-content.header(layout='row', layout-align='center center', layout-padding)
md-button.md-icon-button(ng-click='$mdOpenMenu()')
i.material-icons more_vert
md-menu-content(width='2')
md-menu-item(ng-if='$root.logged && !$ctrl.account.get().secondSignature')
md-button.register-second-passphrase(data-set-second-pass)
div(layout='row', flex='')
p(flex='') Register second passphrase
md-menu-item(ng-if='$root.logged && !$ctrl.account.get().isDelegate')
md-button.register-as-delegate(data-delegate-registration)
div(layout='row', flex='')
p(flex='') Register as delegate
md-menu-item
md-button(ng-click='$ctrl.signVerify.openSignMessageDialog()')
md-button.sign-message(ng-click='$ctrl.signVerify.openSignMessageDialog()')
div(layout='row', flex='')
p(flex='') Sign message
md-menu-item
md-button(ng-click='$ctrl.signVerify.openVerifyMessageDialog()')
md-button.verify-message(ng-click='$ctrl.signVerify.openVerifyMessageDialog()')
div(layout='row', flex='')
p(flex='') Verify message
md-menu-item(ng-if='$root.logged && !$ctrl.account.get().secondSignature')
md-button(data-set-second-pass)
div(layout='row', flex='')
p(flex='') Set 2nd passphrase
md-menu-item(ng-if='$root.logged && !$ctrl.account.get().isDelegate')
md-button(data-delegate-registration)
div(layout='row', flex='')
p(flex='') Delegate registration
14 changes: 7 additions & 7 deletions src/spec/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function testSignMessage() {
login(masterAccount);
waitForElemAndClickIt('header .md-icon-button');
browser.sleep(1000);
waitForElemAndClickIt('md-menu-item .md-button');
waitForElemAndClickIt('md-menu-item .md-button.sign-message');
element(by.css('textarea[name="message"]')).sendKeys(message);
browser.sleep(1000);
expect(element(by.css('textarea[name="result"]')).getAttribute('value')).toEqual(result);
Expand All @@ -243,7 +243,7 @@ function testVerifyMessage() {
login(masterAccount);
waitForElemAndClickIt('header .md-icon-button');
browser.sleep(1000);
waitForElemAndClickIt('md-menu-item:nth-child(2) .md-button');
waitForElemAndClickIt('md-menu-item .md-button.verify-message');
element(by.css('input[name="publicKey"]')).sendKeys(publicKey);
element(by.css('textarea[name="signature"]')).sendKeys(signature);
browser.sleep(1000);
Expand All @@ -254,7 +254,7 @@ function test2ndPassphrase() {
login(account2ndPassphraseCandidate);
waitForElemAndClickIt('header .md-icon-button');
browser.sleep(1000);
waitForElemAndClickIt('md-menu-item:nth-child(3) .md-button');
waitForElemAndClickIt('md-menu-item .md-button.register-second-passphrase');
doPassphraseGenerationProcedure(() => {
browser.sleep(500);
checkAlertDialog('Success', 'Your second passphrase was successfully registered.');
Expand All @@ -265,7 +265,7 @@ function testDelegateRegistration() {
login(accountDelegateCandidate);
waitForElemAndClickIt('header .md-icon-button');
browser.sleep(1000);
waitForElemAndClickIt('md-menu-item:nth-child(4) .md-button');
waitForElemAndClickIt('md-menu-item .md-button.register-as-delegate');
browser.sleep(500);
element(by.css('md-dialog input[name="delegateName"]')).sendKeys(accountDelegateCandidate.username);
waitForElemAndClickIt('md-dialog button.md-primary');
Expand Down Expand Up @@ -397,11 +397,11 @@ describe('Lisk Nano', () => {
it('should show balance', testShowBalance);
});

describe('Top right menu', () => {
fdescribe('Top right menu', () => {
it('should allow to register second passphrase', test2ndPassphrase);
it('should allow to register as delegate', testDelegateRegistration);
it('should allow to sign message', testSignMessage);
it('should allow to verify message', testVerifyMessage);
it('should allow to set 2nd passphrase', test2ndPassphrase);
it('should allow to register a delegate', testDelegateRegistration);
});

describe('Send dialog', () => {
Expand Down

0 comments on commit 9f3e974

Please sign in to comment.