selenium: Fix inefficient use of MWBot in specs/page.js
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 29 Sep 2019 03:24:47 +0000 (04:24 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 30 Sep 2019 13:47:00 +0000 (14:47 +0100)
commit058d5b7cd857af7bb2f003880057e51c78856355
treeadcfa8cbd1b4a93f74d99366542667959f1fcd0d
parent3845dba69e20d3637c2dc0ae7fd8c471d32f7e99
selenium: Fix inefficient use of MWBot in specs/page.js

This test previously took 4 minutes to run locally and ended up
running the MWBot.login process 9 times.

After this, the specs/page tests only log-in once.

Bug: T234002
Change-Id: I374620a01f49d4da559070d0982bdbe4c1269e2e
tests/selenium/specs/page.js