mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 18:17:29 -05:00
18 lines
399 B
Text
18 lines
399 B
Text
|
import { acceptance } from "helpers/qunit-helpers";
|
||
|
|
||
|
acceptance("Category Edit", { loggedIn: true });
|
||
|
|
||
|
test("Can edit a category", (assert) => {
|
||
|
visit("/c/bug");
|
||
|
|
||
|
click('.edit-category');
|
||
|
andThen(() => {
|
||
|
assert.ok(visible('#discourse-modal'), 'it pops up a modal');
|
||
|
});
|
||
|
|
||
|
click('a.close');
|
||
|
andThen(() => {
|
||
|
assert.ok(!visible('#discourse-modal'), 'it closes the modal');
|
||
|
});
|
||
|
});
|