<td>css=.js-user-tokens</td>
<td></td>
</tr>
+<tr>
+ <td>waitForText</td>
+ <td>css=.modal</td>
+ <td>*No tokens*</td>
+</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.js-generate-token-form input</td>
<td>css=.modal code</td>
<td></td>
</tr>
+<tr>
+ <td>waitForText</td>
+ <td>css=.modal</td>
+ <td>*test-token*</td>
+</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.js-revoke-token-form</td>
<div class="big-spacer-left">
<form class="js-revoke-token-form" data-token="{{name}}">
{{#if deleting}}
- <button class="button-red">Sure?</button>
+ <button class="button-red input-small">Sure?</button>
{{else}}
- <button class="button-red">Revoke</button>
+ <button class="button-red input-small">Revoke</button>
{{/if}}
</form>
</div>
<hr class="big-spacer-top big-spacer-bottom">
- <p class="spacer-bottom">Generate tokens for bla bla bla</p>
+ <h3 class="spacer-bottom">Generate Tokens</h3>
{{#each errors}}
<div class="alert alert-danger">{{msg}}</div>
e.preventDefault();
this.errors = [];
this.newToken = null;
- let tokenName = this.$('#generate-token-form input').val();
+ let tokenName = this.$('.js-generate-token-form input').val();
generateToken(this.model.id, tokenName)
.then(response => {
this.newToken = response.token;