mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 16:10:55 +00:00
c16c20a394
Uncover a bug and fix it in the process \o/ - it seems that the close icon is misplaced between clicking the notifications icon and loading the contents of the overlay - this confuses the webdriver as the button is not clickable. Bug: T219920 Change-Id: Ib4d076fd9b7ea1cd48b6b58940a50560eacd51a0
32 lines
959 B
JavaScript
32 lines
959 B
JavaScript
const
|
|
{
|
|
iClickTheBrowserBackButton,
|
|
iAmLoggedIntoTheMobileWebsite
|
|
} = require( './../features/step_definitions/common_steps' ),
|
|
{ iHaveNoNotifications, iClickOnTheNotificationIcon,
|
|
iShouldSeeTheNotificationsOverlay, iClickTheNotificationsOverlayCloseButton,
|
|
iShouldNotSeeTheNotificationsOverlay
|
|
} = require( './../features/step_definitions/notification_steps' );
|
|
|
|
// @chrome @en.m.wikipedia.beta.wmflabs.org @extension-echo
|
|
// @firefox @vagrant @login
|
|
describe( 'Feature: Notification', () => {
|
|
|
|
beforeEach( () => {
|
|
iAmLoggedIntoTheMobileWebsite();
|
|
iHaveNoNotifications();
|
|
iClickOnTheNotificationIcon();
|
|
iShouldSeeTheNotificationsOverlay();
|
|
} );
|
|
|
|
it( 'Closing notifications (overlay button)', () => {
|
|
iClickTheNotificationsOverlayCloseButton();
|
|
iShouldNotSeeTheNotificationsOverlay();
|
|
} );
|
|
|
|
it( 'Closing notifications (browser button)', () => {
|
|
iClickTheBrowserBackButton();
|
|
iShouldNotSeeTheNotificationsOverlay();
|
|
} );
|
|
} );
|