Refactor search route/loading
* Fetch results asynchronously after app launch * Hide sidebar and search results when new search is issued
This commit is contained in:
@@ -67,6 +67,7 @@ module('Acceptance | search loading', function (hooks) {
|
||||
);
|
||||
|
||||
await searchPromise;
|
||||
await new Promise((r) => setTimeout(r, 250));
|
||||
assert.strictEqual(
|
||||
mapUi.loadingState,
|
||||
null,
|
||||
@@ -84,6 +85,7 @@ module('Acceptance | search loading', function (hooks) {
|
||||
);
|
||||
|
||||
await catPromise;
|
||||
await new Promise((r) => setTimeout(r, 250));
|
||||
assert.strictEqual(
|
||||
mapUi.loadingState,
|
||||
null,
|
||||
|
||||
Reference in New Issue
Block a user