Files
threshold-ui/ui/admin/tests/acceptance/onboarding/success-test.js
T
Cameron Perera c5416e770a feat: 🎸 Add Controller URL component to Success screen (#1135)
* feat: 🎸 Add Controller URL component to Success screen

✅ Closes: ICU-4785

* style: 💄 Update Success screen styles to match wireframe

* refactor: 💡 Update class names to be more descriptive

* refactor: 💡 Update styles for Success card

* test: 💍 Fix failing test
2022-06-14 16:36:11 -05:00

29 lines
878 B
JavaScript

import { module, test } from 'qunit';
import { visit, find } from '@ember/test-helpers';
import { setupApplicationTest } from 'ember-qunit';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import { authenticateSession } from 'ember-simple-auth/test-support';
module(
'Acceptance | onboarding | quick-setup | create-resources | success',
function (hooks) {
setupApplicationTest(hooks);
setupMirage(hooks);
hooks.beforeEach(function () {
authenticateSession({});
});
const urls = {
createResources: '/onboarding/quick-setup/create-resources/success',
targets: '/scopes/global/targets',
};
test('check if the done button is present', async function (assert) {
assert.expect(1);
await visit(urls.createResources);
assert.ok(find('.onboarding-quick-setup-success-button'));
});
}
);