Refactor upgrade ember 4 (#1501)

Upgrade Ember 4

Co-authored-by: Randall Morey <randall@randallmorey.com>
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
This commit is contained in:
authored and GitHub committed 2023-01-09 08:48:49 -08:00
1 parent ed91b26861
commit c21f011bb2
119 files changed
+1482 -496

No files matched your search

@@ -199,7 +199,8 @@ module('Acceptance | targets | brokered credential sources', function (hooks) {
brokeredCredentialSourceIds: [],
});
await visit(urls.brokeredCredentialSources);
await click(find('.rose-message-link'));
// Click on the rose message link
await click(find('.rose-message > .rose-message-body > a'));
assert.strictEqual(currentURL(), urls.addBrokeredCredentialSources);
});
@@ -196,7 +196,8 @@ module(
injectedApplicationCredentialSourceIds: [],
});
await visit(urls.injectedApplicationCredentialSources);
await click(find('.rose-message-link'));
// Click on the rose message link
await click(find('.rose-message > .rose-message-body > a'));
assert.strictEqual(
currentURL(),
urls.addInjectedApplicationCredentialSources
+42
View File
@@ -0,0 +1,42 @@
import {
setupApplicationTest as upstreamSetupApplicationTest,
setupRenderingTest as upstreamSetupRenderingTest,
setupTest as upstreamSetupTest,
} from 'ember-qunit';
// This file exists to provide wrappers around ember-qunit's / ember-mocha's
// test setup functions. This way, you can easily extend the setup that is
// needed per test type.
function setupApplicationTest(hooks, options) {
upstreamSetupApplicationTest(hooks, options);
// Additional setup for application tests can be done here.
//
// For example, if you need an authenticated session for each
// application test, you could do:
//
// hooks.beforeEach(async function () {
// await authenticateSession(); // ember-simple-auth
// });
//
// This is also a good place to call test setup functions coming
// from other addons:
//
// setupIntl(hooks); // ember-intl
// setupMirage(hooks); // ember-cli-mirage
}
function setupRenderingTest(hooks, options) {
upstreamSetupRenderingTest(hooks, options);
// Additional setup for rendering tests can be done here.
}
function setupTest(hooks, options) {
upstreamSetupTest(hooks, options);
// Additional setup for unit tests can be done here.
}
export { setupApplicationTest, setupRenderingTest, setupTest };
-1
View File
@@ -2,7 +2,6 @@
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Admin Tests</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">