From 0d93a839c73aabf97204640403cc38f0abda1ef3 Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Fri, 21 Aug 2020 13:22:00 -0400 Subject: [PATCH] chore: Update target tests --- ui/core/tests/acceptance/host-sets-test.js | 4 +- ui/core/tests/acceptance/targets-test.js | 61 ++++++++++++++++++++++ 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 ui/core/tests/acceptance/targets-test.js diff --git a/ui/core/tests/acceptance/host-sets-test.js b/ui/core/tests/acceptance/host-sets-test.js index f7ba7226d..b018fc1d8 100644 --- a/ui/core/tests/acceptance/host-sets-test.js +++ b/ui/core/tests/acceptance/host-sets-test.js @@ -47,7 +47,7 @@ module('Acceptance | host sets', function (hooks) { assert.expect(0); }); - test('errors are displayed when save on auth method fails', async function (assert) { + test('errors are displayed when save on host set fails', async function (assert) { assert.expect(0); }); @@ -55,7 +55,7 @@ module('Acceptance | host sets', function (hooks) { assert.expect(0); }); - test('saving an existing auth method with invalid fields displays error messages', async function (assert) { + test('saving an existing host set with invalid fields displays error messages', async function (assert) { assert.expect(0); }); }); diff --git a/ui/core/tests/acceptance/targets-test.js b/ui/core/tests/acceptance/targets-test.js new file mode 100644 index 000000000..8ff26fa7f --- /dev/null +++ b/ui/core/tests/acceptance/targets-test.js @@ -0,0 +1,61 @@ +import { module, test } from 'qunit'; +//import { visit, currentURL } from '@ember/test-helpers'; +import { setupApplicationTest } from 'ember-qunit'; +import setupMirage from 'ember-cli-mirage/test-support/setup-mirage'; +//import a11yAudit from 'ember-a11y-testing/test-support/audit'; +// import { +// authenticateSession, +// // These are left here intentionally for future reference. +// //currentSession, +// //invalidateSession, +// } from 'ember-simple-auth/test-support'; + +module('Acceptance | targets', function (hooks) { + setupApplicationTest(hooks); + setupMirage(hooks); + + hooks.beforeEach(function () { + // Setup Mirage mock resources for this test + // Generate route URLs for resources + }); + + test('visiting targets', async function (assert) { + assert.expect(0); + }); + + test('can navigate to a target form', async function (assert) { + assert.expect(0); + }); + + test('can update a target and save changes', async function (assert) { + assert.expect(0); + }); + + test('can update a target and cancel changes', async function (assert) { + assert.expect(0); + }); + + test('can create new target', async function (assert) { + assert.expect(0); + }); + + test('can cancel new target creation', async function (assert) { + assert.expect(0); + }); + + test('saving a new target with invalid fields displays error messages', async function (assert) { + assert.expect(0); + }); + + test('errors are displayed when save on target fails', async function (assert) { + assert.expect(0); + }); + + test('errors are displayed when delete on a target fails', async function (assert) { + assert.expect(0); + }); + + test('saving an existing target with invalid fields displays error messages', async function (assert) { + assert.expect(0); + }); +});