From: Pablo Grass Date: Fri, 13 Jul 2018 15:18:20 +0000 (+0200) Subject: selenium: create edit for RecentChanges through GUI X-Git-Tag: 1.34.0-rc.0~4765^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=42f844e04a805b54dfdcb4c802a4dc5d50ecec7f;p=lhc%2Fweb%2Fwiklou.git selenium: create edit for RecentChanges through GUI Use page object to create the page we will be asserting on Special:RecentChanges. Apparently (post send) jobs are not executed on API calls (that were formerly used for test setup) and consequently presence of the edit on Special:RecentChanges could not be guaranteed. Bug: T199446 Change-Id: I1fd0c49263e975c6b24e2e1f9a072486a6565dda --- diff --git a/tests/selenium/specs/specialrecentchanges.js b/tests/selenium/specs/specialrecentchanges.js index 218e67a75c..ce3ef0dcef 100644 --- a/tests/selenium/specs/specialrecentchanges.js +++ b/tests/selenium/specs/specialrecentchanges.js @@ -1,5 +1,5 @@ const assert = require( 'assert' ), - Api = require( 'wdio-mediawiki/Api' ), + EditPage = require( '../pageobjects/edit.page' ), RecentChangesPage = require( '../pageobjects/recentchanges.page' ), Util = require( 'wdio-mediawiki/Util' ); @@ -13,11 +13,8 @@ describe( 'Special:RecentChanges', function () { name = Util.getTestString(); } ); - // Disabled because flaky (T198137) - it.skip( 'shows page creation', function () { - browser.call( function () { - return Api.edit( name, content ); - } ); + it( 'shows page creation', function () { + EditPage.edit( name, content ); RecentChangesPage.open();