Enable rubocop on mediawiki/{selenium,ruby/api}

Related changes have been merged:

https://gerrit.wikimedia.org/r/167210
https://gerrit.wikimedia.org/r/167578

Bug: 69245
Change-Id: I84085c86cc8dea3284de443f680e5dddc6589eb6