mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
Merge pull request #3604 from PaulAdamDavis/notification-close-button
Swap notification close link for a button
This commit is contained in:
commit
102bb9d0c7
2 changed files with 3 additions and 3 deletions
|
@ -2,5 +2,5 @@
|
|||
<span class="notification-message">
|
||||
{{{message.message}}}
|
||||
</span>
|
||||
<a class="close" {{action "closeNotification"}}><span class="hidden">Close</span></a>
|
||||
<button class="close" {{action "closeNotification"}}><span class="hidden">Close</span></button>
|
||||
</section>
|
|
@ -283,7 +283,7 @@ CasperTest.begin('Post settings menu', 30, function suite(test) {
|
|||
casper.waitForSelector('.notification-success', function waitForSuccess() {
|
||||
test.assert(true, 'got success notification');
|
||||
test.assertSelectorHasText('.notification-success', 'Saved.');
|
||||
casper.click('.notification-success a.close');
|
||||
casper.click('.notification-success .close');
|
||||
}, function onTimeout() {
|
||||
test.assert(false, 'No success notification');
|
||||
});
|
||||
|
@ -312,7 +312,7 @@ CasperTest.begin('Post settings menu', 30, function suite(test) {
|
|||
casper.waitForSelector('.notification-success', function waitForSuccess() {
|
||||
test.assert(true, 'got success notification');
|
||||
test.assertSelectorHasText('.notification-success', 'Permalink successfully changed to new-url-editor.');
|
||||
casper.click('.notification-success a.close');
|
||||
casper.click('.notification-success .close');
|
||||
}, function onTimeout() {
|
||||
test.assert(false, 'No success notification');
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue