mediawiki-extensions-Echo/tests/browser/features/step_definition/popup_steps.rb
Stephane Bisson 10c4ed6f49 Browser Tests: fix
* extract notifications to components/notifications.rb
* wait for the flyout to be loaded before counting
  the unread notifications
* remove popup.feature because it is redudant with
  notifications.feature and too low-level
  for acceptance testing

Change-Id: If0b0286e8e98e379ae1d6d91db8084adda93b3f6
2015-11-12 15:17:07 -08:00

12 lines
305 B
Ruby

Given(/^I see the alert popup$/) do
on(ArticlePage) do |page|
expect(page.alerts.title_element.when_present.text).to match('Alerts')
end
end
Given(/^I see the message popup$/) do
on(ArticlePage) do |page|
expect(page.messages.title_element.when_present.text).to match('Messages')
end
end