Fix text and add feature test for copy button (#5958)

`Copied IP Address!` > `Copied output!`

Adds feature test for copy button
This commit is contained in:
Joel Kuzmarski 2019-06-27 04:01:30 -05:00 committed by John Cowen
parent 4eb73973b6
commit 0598b66a80
3 changed files with 24 additions and 1 deletions

View File

@ -6,7 +6,7 @@
{{/block-slot}} {{/block-slot}}
{{#block-slot 'success' as |transition|}} {{#block-slot 'success' as |transition|}}
<p class={{transition}}> <p class={{transition}}>
Copied IP Address! Copied output!
</p> </p>
{{/block-slot}} {{/block-slot}}
{{#block-slot 'error' as |transition|}} {{#block-slot 'error' as |transition|}}

View File

@ -0,0 +1,13 @@
@setupApplicationTest
Feature: components / copy-button
Background:
Given 1 datacenter model with the value "dc-1"
Scenario: Clicking the copy button
When I visit the node page for yaml
---
dc: dc-1
node: node-0
---
Then the url should be /dc-1/nodes/node-0
When I click ".healthcheck-output:nth-child(1) button.copy-btn"
Then I see the text "Copied output!" in ".healthcheck-output:nth-child(1) p.feedback-dialog-out"

View File

@ -0,0 +1,10 @@
import steps from '../steps';
// step definitions that are shared between features should be moved to the
// tests/acceptance/steps/steps.js file
export default function(assert) {
return steps(assert).then('I should find a file', function() {
assert.ok(true, this.step);
});
}