Skip to content

Commit

Permalink
Use the actual state as button text
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 23, 2024
1 parent 357fd6a commit f7c14ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions assets/vue/ReportMetadata.vue
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@
<textarea v-model="result" name="comment" rows="10" class="form-control"></textarea>
</div>
<div class="col mb-3">
<input class="btn btn-success" id="correct" name="correct" type="submit" value="Checked" />&nbsp;
<input class="btn btn-success" id="correct" name="correct" type="submit" value="Correct" />&nbsp;
<span v-if="hasLawyerRole === false">
<input class="btn btn-warning" id="acceptable" name="acceptable" type="submit" value="Good Enough" />&nbsp;
<input class="btn btn-warning" id="acceptable" name="acceptable" type="submit" value="Acceptable" />&nbsp;
</span>
<input class="btn btn-danger" id="unacceptable" name="unacceptable" type="submit" value="Unacceptable" />
</div>
Expand All @@ -287,7 +287,7 @@
<textarea v-model="result" name="comment" rows="10" class="form-control"></textarea>
</div>
<div class="col mb-3">
<input class="btn btn-warning" id="acceptable" name="acceptable" type="submit" value="Good Enough" />
<input class="btn btn-warning" id="acceptable" name="acceptable" type="submit" value="Acceptable" />
</div>
</form>
</div>
Expand Down
4 changes: 2 additions & 2 deletions t/ui.t.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ t.test('Test cavil ui', skip, async t => {
await page.click('text=Artistic');
t.equal(await page.innerText('title'), 'Report for perl-Mojolicious');
await page.waitForSelector('#license-chart');
await page.click('text=Good Enough');
await page.click('text=Acceptable');
t.equal(await page.innerText('div.alert b'), 'acceptable');

await page.click('text=Recently Reviewed');
Expand All @@ -333,7 +333,7 @@ t.test('Test cavil ui', skip, async t => {
await page.click('text=Artistic');
t.equal(await page.innerText('title'), 'Report for perl-Mojolicious');
await page.waitForSelector('#license-chart');
await page.click('text=Checked');
await page.click('text=Correct');
t.equal(await page.innerText('div.alert b'), 'correct');

await page.click('text=Recently Reviewed');
Expand Down

0 comments on commit f7c14ed

Please sign in to comment.