Re-enable tests

This commit is contained in:
John Cowen 2021-07-20 14:02:25 +01:00
parent 22650621f2
commit 35aab72006
2 changed files with 4 additions and 3 deletions

View File

@ -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"

View File

@ -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();