mirror of https://github.com/status-im/consul.git
Re-enable tests
This commit is contained in:
parent
22650621f2
commit
35aab72006
|
@ -1,5 +1,4 @@
|
|||
@setupApplicationTest
|
||||
@ignore
|
||||
Feature: components / copy-button
|
||||
Background:
|
||||
Given 1 datacenter model with the value "dc-1"
|
||||
|
@ -22,5 +21,5 @@ Feature: components / copy-button
|
|||
node: node-0
|
||||
---
|
||||
Then the url should be /dc-1/nodes/node-0/health-checks
|
||||
When I click ".healthcheck-output:nth-child(1) .copy-button button"
|
||||
When I click ".health-check-output:nth-child(1) .copy-button button"
|
||||
Then I copied "The output"
|
||||
|
|
|
@ -2,10 +2,12 @@ import Application from '../app';
|
|||
import config from '../config/environment';
|
||||
import { setApplication } from '@ember/test-helpers';
|
||||
import { registerWaiter } from '@ember/test';
|
||||
import { getOwner } from '@ember/application';
|
||||
import './helpers/flash-message';
|
||||
import start from 'ember-exam/test-support/start';
|
||||
|
||||
import ClientConnections from 'consul-ui/services/client/connections';
|
||||
import LocalStorageClipboard from 'consul-ui/services/clipboard/local-storage';
|
||||
|
||||
let activeRequests = 0;
|
||||
registerWaiter(function() {
|
||||
|
@ -32,7 +34,7 @@ ClientConnections.reopen({
|
|||
},
|
||||
});
|
||||
const application = Application.create(config.APP);
|
||||
application.inject('component:copy-button', 'clipboard', 'service:clipboard/local-storage');
|
||||
application.register('service:clipboard', LocalStorageClipboard);
|
||||
setApplication(application);
|
||||
|
||||
start();
|
||||
|
|
Loading…
Reference in New Issue