Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove teardownContext calls #283

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 1 addition & 41 deletions web/tests/acceptance/application-test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { click, teardownContext, visit, waitFor } from "@ember/test-helpers";
import { click, visit, waitFor } from "@ember/test-helpers";
import { setupApplicationTest } from "ember-qunit";
import { module, test } from "qunit";
import {
Expand Down Expand Up @@ -49,16 +49,6 @@ module("Acceptance | application", function (hooks) {
assert
.dom("[data-test-flash-notification-button]")
.hasText("Authenticate with Google");

/**
* FIXME: Investigate unresolved promises
*
* For reasons not yet clear, this test has unresolved promises
* that prevent it from completing naturally. Because of this,
* we handle teardown manually.
*
*/
teardownContext(this);
});

test("a message shows when the back-end auth token expires", async function (this: ApplicationTestContext, assert) {
Expand All @@ -77,16 +67,6 @@ module("Acceptance | application", function (hooks) {
assert
.dom("[data-test-flash-notification]")
.exists("flash notification is shown when session is invalid");

/**
* FIXME: Investigate unresolved promises
*
* For reasons not yet clear, this test has unresolved promises
* that prevent it from completing naturally. Because of this,
* we handle teardown manually.
*
*/
teardownContext(this);
});

test("the reauthenticate button works as expected (success)", async function (this: ApplicationTestContext, assert) {
Expand Down Expand Up @@ -126,16 +106,6 @@ module("Acceptance | application", function (hooks) {
.hasText("Welcome back, Test!");

assert.equal(authCount, 1, "session.authenticate() was called");

/**
* FIXME: Investigate unresolved promises
*
* For reasons not yet clear, this test has unresolved promises
* that prevent it from completing naturally. Because of this,
* we handle teardown manually.
*
*/
teardownContext(this);
});

test("the reauthenticate button works as expected (failure)", async function (this: ApplicationTestContext, assert) {
Expand Down Expand Up @@ -164,16 +134,6 @@ module("Acceptance | application", function (hooks) {
assert
.dom(criticalSelector)
.exists("flash notification is shown on re-auth failure");

/**
* FIXME: Investigate unresolved promises
*
* For reasons not yet clear, this test has unresolved promises
* that prevent it from completing naturally. Because of this,
* we handle teardown manually.
*
*/
teardownContext(this);
});

test("the config is grabbed from the backend when the app loads", async function (this: ApplicationTestContext, assert) {
Expand Down