mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Show share popup only for valid buttons.
This commit is contained in:
@@ -7,7 +7,7 @@ test("Share Popup", () => {
|
||||
ok(!exists('#share-link.visible'), 'it is not visible');
|
||||
});
|
||||
|
||||
click("[data-share-url]:eq(0)");
|
||||
click("button[data-share-url]");
|
||||
andThen(() => {
|
||||
ok(exists('#share-link.visible'), 'it shows the popup');
|
||||
});
|
||||
@@ -16,6 +16,16 @@ test("Share Popup", () => {
|
||||
andThen(() => {
|
||||
ok(!exists('#share-link.visible'), 'it closes the popup');
|
||||
});
|
||||
|
||||
click('#topic-footer-buttons .btn.create');
|
||||
fillIn('.d-editor-input', '<h2><div data-share-url="something">Click</button><h2>');
|
||||
|
||||
click('#reply-control .btn.create');
|
||||
click('h2 div[data-share-url]');
|
||||
|
||||
andThen(() => {
|
||||
ok(!exists('#share-link.visible'), 'it does not show the popup');
|
||||
});
|
||||
});
|
||||
|
||||
test("Showing and hiding the edit controls", () => {
|
||||
|
||||
Reference in New Issue
Block a user