Replace the share popup with a component

This commit is contained in:
Robin Ward
2016-11-11 14:13:19 -05:00
parent 2a25136ecf
commit 93403b0af6
7 changed files with 200 additions and 199 deletions
@@ -1,6 +1,24 @@
import { acceptance } from "helpers/qunit-helpers";
acceptance("Topic", { loggedIn: true });
test("Share Popup", () => {
visit("/t/internationalization-localization/280");
andThen(() => {
ok(!exists('#share-link.visible'), 'it is not visible');
});
click("[data-share-url]:eq(0)");
andThen(() => {
ok(exists('#share-link.visible'), 'it shows the popup');
ok(find('input[type=text]').val().length, 'it has the URL in the input box');
});
click('#share-link .close-share');
andThen(() => {
ok(!exists('#share-link.visible'), 'it closes the popup');
});
});
test("Showing and hiding the edit controls", () => {
visit("/t/internationalization-localization/280");