mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Upgrade QUnit to latest version
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Search");
|
||||
|
||||
test("search", (assert) => {
|
||||
QUnit.test("search", (assert) => {
|
||||
visit("/");
|
||||
|
||||
click('#search-button');
|
||||
@@ -25,29 +25,29 @@ test("search", (assert) => {
|
||||
});
|
||||
});
|
||||
|
||||
test("search scope checkbox", () => {
|
||||
QUnit.test("search scope checkbox", assert => {
|
||||
visit("/c/bug");
|
||||
click('#search-button');
|
||||
andThen(() => {
|
||||
ok(exists('.search-context input:checked'), 'scope to category checkbox is checked');
|
||||
assert.ok(exists('.search-context input:checked'), 'scope to category checkbox is checked');
|
||||
});
|
||||
click('#search-button');
|
||||
|
||||
visit("/t/internationalization-localization/280");
|
||||
click('#search-button');
|
||||
andThen(() => {
|
||||
not(exists('.search-context input:checked'), 'scope to topic checkbox is not checked');
|
||||
assert.not(exists('.search-context input:checked'), 'scope to topic checkbox is not checked');
|
||||
});
|
||||
click('#search-button');
|
||||
|
||||
visit("/u/eviltrout");
|
||||
click('#search-button');
|
||||
andThen(() => {
|
||||
ok(exists('.search-context input:checked'), 'scope to user checkbox is checked');
|
||||
assert.ok(exists('.search-context input:checked'), 'scope to user checkbox is checked');
|
||||
});
|
||||
});
|
||||
|
||||
test("Search with context", assert => {
|
||||
QUnit.test("Search with context", assert => {
|
||||
visit("/t/internationalization-localization/280/1");
|
||||
|
||||
click('#search-button');
|
||||
@@ -72,4 +72,4 @@ test("Search with context", assert => {
|
||||
andThen(() => {
|
||||
assert.ok(!$('.search-context input[type=checkbox]').is(":checked"));
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user