Migrate away from #discourse-modal to .d-modal

This commit is contained in:
Robin Ward
2017-08-30 15:29:51 -04:00
parent 8fcd5af5b1
commit 3d95bac3fb
7 changed files with 19 additions and 19 deletions

View File

@ -115,13 +115,13 @@ QUnit.test("Create an enqueued Topic", assert => {
fillIn('.d-editor-input', "enqueue this content please");
click('#reply-control button.create');
andThen(() => {
assert.ok(visible('#discourse-modal'), 'it pops up a modal');
assert.ok(visible('.d-modal'), 'it pops up a modal');
assert.equal(currentURL(), "/", "it doesn't change routes");
});
click('.modal-footer button');
andThen(() => {
assert.ok(invisible('#discourse-modal'), 'the modal can be dismissed');
assert.ok(invisible('.d-modal'), 'the modal can be dismissed');
});
});
@ -183,12 +183,12 @@ QUnit.test("Create an enqueued Reply", assert => {
});
andThen(() => {
assert.ok(visible('#discourse-modal'), 'it pops up a modal');
assert.ok(visible('.d-modal'), 'it pops up a modal');
});
click('.modal-footer button');
andThen(() => {
assert.ok(invisible('#discourse-modal'), 'the modal can be dismissed');
assert.ok(invisible('.d-modal'), 'the modal can be dismissed');
});
});