mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
Upgrade QUnit to latest version
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Topic Notifications button", {
|
||||
loggedIn: true,
|
||||
setup() {
|
||||
beforeEach() {
|
||||
const response = object => {
|
||||
return [
|
||||
200,
|
||||
@ -16,13 +16,13 @@ acceptance("Topic Notifications button", {
|
||||
}
|
||||
});
|
||||
|
||||
test("Updating topic notification level", () => {
|
||||
QUnit.test("Updating topic notification level", assert => {
|
||||
visit("/t/internationalization-localization/280");
|
||||
|
||||
const notificationOptions = "#topic-footer-buttons .notification-options";
|
||||
|
||||
andThen(() => {
|
||||
ok(
|
||||
assert.ok(
|
||||
exists(`${notificationOptions} .tracking`),
|
||||
"it should display the notification options button in the topic's footer"
|
||||
);
|
||||
@ -32,7 +32,7 @@ test("Updating topic notification level", () => {
|
||||
click(`${notificationOptions} .dropdown-menu .watching`);
|
||||
|
||||
andThen(() => {
|
||||
ok(
|
||||
assert.ok(
|
||||
exists(`${notificationOptions} .watching`),
|
||||
"it should display the right notification level"
|
||||
);
|
||||
@ -44,4 +44,4 @@ test("Updating topic notification level", () => {
|
||||
// 'it should display the right notification level in topic timeline'
|
||||
// );
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user