Page MenuHomePhabricator

Pending fails upon not finding an element (a failure case that should then pass)
Closed, InvalidPublic

Description

The following code within a step definition fails, raising an exception with the message TODO. The element referenced does not exist on the page, so since it is within a pending block, it should pass (unless I'm misunderstanding the use cases of pending).

pending do
  on(HomePage) { |page| expect(page.big_image_element).to be_visible }
end

After taking a look at the StrictPending module within Selenium, it seems likely this is actually a Cucumber bug (since no todo statements are found), but it would be nice to have a workaround.

Event Timeline

• jhobs assigned this task to dduvall.
• jhobs updated the task description. (Show Details)
• jhobs changed Security from none to None.
• jhobs subscribed.

Wasn't sure if the QA team is using phabricator yet or not, but seeing as there was only one bug in Bugzilla when searching for "selenium," I figured I'd go with phabricator.

Aklapper subscribed.

@jhobs: Please file this in Bugzilla: https://bugzilla.wikimedia.org/enter_bug.cgi?product=Wikimedia&component=Quality%20Assurance

In general, bug tracking happens in Bugzilla until Bugzilla is migrated to Phabricator. Until new projects are accepted in Phabricator for the time being, and there is no QA project here: https://phabricator.wikimedia.org/project/query/all/