Icu 16546 upgrade ember for admin UI (#2793)
* v4.12.2...v5.12.0 * chore: 🤖 yarn.lock changes * chore: 🤖 ember init blueprint changes * chore: 🤖 yarn.lock file changes * style: 💄 run linter and formatter ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-16546
This commit is contained in:
1 parent
93a57f26ee
commit
620f822504
24 files changed
+186
-146
No files matched your search
@@ -13,7 +13,7 @@ import {
|
||||
authenticateSession,
|
||||
} from 'ember-simple-auth/test-support';
|
||||
|
||||
// This file exists to provide wrappers around ember-qunit's / ember-mocha's
|
||||
// This file exists to provide wrappers around ember-qunit's
|
||||
// test setup functions. This way, you can easily extend the setup that is
|
||||
// needed per test type.
|
||||
|
||||
|
||||
+15
-11
@@ -1,26 +1,29 @@
|
||||
<!doctype html>
|
||||
<!--
|
||||
Copyright (c) HashiCorp, Inc.
|
||||
SPDX-License-Identifier: BUSL-1.1
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta charset="utf-8">
|
||||
<title>Admin Tests</title>
|
||||
<meta name="description" content="" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
{{content-for "head"}} {{content-for "test-head"}}
|
||||
{{content-for "head"}}
|
||||
{{content-for "test-head"}}
|
||||
|
||||
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css" />
|
||||
<link rel="stylesheet" href="{{rootURL}}assets/admin.css" />
|
||||
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css" />
|
||||
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
||||
<link rel="stylesheet" href="{{rootURL}}assets/admin.css">
|
||||
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
|
||||
|
||||
{{content-for "head-footer"}} {{content-for "test-head-footer"}}
|
||||
{{content-for "head-footer"}}
|
||||
{{content-for "test-head-footer"}}
|
||||
</head>
|
||||
<body>
|
||||
{{content-for "body"}} {{content-for "test-body"}}
|
||||
{{content-for "body"}}
|
||||
{{content-for "test-body"}}
|
||||
|
||||
<div id="qunit"></div>
|
||||
<div id="qunit-fixture">
|
||||
@@ -35,6 +38,7 @@
|
||||
<script src="{{rootURL}}assets/admin.js"></script>
|
||||
<script src="{{rootURL}}assets/tests.js"></script>
|
||||
|
||||
{{content-for "body-footer"}} {{content-for "test-body-footer"}}
|
||||
{{content-for "body-footer"}}
|
||||
{{content-for "test-body-footer"}}
|
||||
</body>
|
||||
</html>
|
||||
@@ -17,10 +17,10 @@ module(
|
||||
this.set('value', 'Skeleton Message');
|
||||
|
||||
await render(hbs`
|
||||
<Form::Field::JsonSecret::Skeleton>
|
||||
{{this.value}}
|
||||
</Form::Field::JsonSecret::Skeleton>
|
||||
`);
|
||||
<Form::Field::JsonSecret::Skeleton>
|
||||
{{this.value}}
|
||||
</Form::Field::JsonSecret::Skeleton>
|
||||
`);
|
||||
assert.dom('.secret-editor-skeleton-wrapper').isVisible();
|
||||
assert.dom('.secret-editor-skeleton-message').hasText('Skeleton Message');
|
||||
});
|
||||
|
||||
@@ -18,15 +18,15 @@ module(
|
||||
this.set('egressWorker', 'Egress Worker');
|
||||
|
||||
await render(hbs`
|
||||
<OrderedSeriesDiagram::Group @title='Private Network' @color='highlight'>
|
||||
<OrderedSeriesDiagram::Item @icon='user'>
|
||||
{{this.client}}
|
||||
</OrderedSeriesDiagram::Item>
|
||||
<OrderedSeriesDiagram::Item @icon='settings'>
|
||||
{{this.egressWorker}}
|
||||
</OrderedSeriesDiagram::Item>
|
||||
</OrderedSeriesDiagram::Group>
|
||||
`);
|
||||
<OrderedSeriesDiagram::Group @title='Private Network' @color='highlight'>
|
||||
<OrderedSeriesDiagram::Item @icon='user'>
|
||||
{{this.client}}
|
||||
</OrderedSeriesDiagram::Item>
|
||||
<OrderedSeriesDiagram::Item @icon='settings'>
|
||||
{{this.egressWorker}}
|
||||
</OrderedSeriesDiagram::Item>
|
||||
</OrderedSeriesDiagram::Group>
|
||||
`);
|
||||
|
||||
assert
|
||||
.dom('.ordered-series-diagram-group-content')
|
||||
|
||||
@@ -18,11 +18,11 @@ module(
|
||||
this.set('egressWorker', 'Egress Worker');
|
||||
|
||||
await render(hbs`
|
||||
<OrderedSeriesDiagram as |D|>
|
||||
<D.Item @icon='user'>{{this.client}}</D.Item>
|
||||
<D.Item @icon='settings'>{{this.egressWorker}}</D.Item>
|
||||
</OrderedSeriesDiagram>
|
||||
`);
|
||||
<OrderedSeriesDiagram as |D|>
|
||||
<D.Item @icon='user'>{{this.client}}</D.Item>
|
||||
<D.Item @icon='settings'>{{this.egressWorker}}</D.Item>
|
||||
</OrderedSeriesDiagram>
|
||||
`);
|
||||
|
||||
assert.dom('[data-test-icon="user"]').isVisible();
|
||||
assert.dom('.ordered-series-diagram-item-title').hasText('Client');
|
||||
|
||||
@@ -17,10 +17,10 @@ module(
|
||||
this.set('client', 'Client');
|
||||
|
||||
await render(hbs`
|
||||
<OrderedSeriesDiagram::Item @icon='user'>
|
||||
{{this.client}}
|
||||
</OrderedSeriesDiagram::Item>
|
||||
`);
|
||||
<OrderedSeriesDiagram::Item @icon='user'>
|
||||
{{this.client}}
|
||||
</OrderedSeriesDiagram::Item>
|
||||
`);
|
||||
|
||||
assert.dom('[data-test-icon="user"]').isVisible();
|
||||
assert.dom('.ordered-series-diagram-item-title').hasText('Client');
|
||||
|
||||
@@ -19,8 +19,8 @@ module(
|
||||
this.set('model', { id: 'w_123' });
|
||||
|
||||
await render(hbs`
|
||||
<Workers::Worker::Header @model={{this.model}} />
|
||||
`);
|
||||
<Workers::Worker::Header @model={{this.model}} />
|
||||
`);
|
||||
|
||||
assert.dom(this.element).includesText('w_123');
|
||||
});
|
||||
|
||||
@@ -32,7 +32,9 @@ module('Unit | Instance Initializer | feature-edition', function (hooks) {
|
||||
});
|
||||
|
||||
hooks.afterEach(function () {
|
||||
// eslint-disable-next-line ember/no-runloop
|
||||
run(this.instance, 'destroy');
|
||||
// eslint-disable-next-line ember/no-runloop
|
||||
run(this.application, 'destroy');
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user