[QA] PageObjects in mobile browser tests

Jon Robson jdlrobson at gmail.com
Tue Jan 14 23:01:48 UTC 2014


I noticed this when writing tests for lead photo uploads where I had to
create a LeadPhotoPage (to represent a page which has no lead photo)... [1]

I agree we should only use page exists but use more generic names

e.g. instead of Barack Obama article

PageWithInfobox

or PageWithMultipleSections etc..

[1] https://gerrit.wikimedia.org/r/105106

~ Be strong. Not bold. Bold has taken a new semantic meaning and it is time
for change.
On 14 Jan 2014 13:40, "Juliusz Gonera" <jgonera at wikimedia.org> wrote:

> Hi,
>
> I was wondering if we need that many PageObjects in mobile browser tests.
> In my opinion we should only have PageObjects for pages that actually
> exist, such as:
>
> * HomePage (or MainPage)
> * ArticlePage
> * UploadsPage
> * etc.
>
> There are a bunch of PageObjects that don't actually represent pages, but
> kind of mirror features:
>
> * CreateArticlePage
> * EditPage
> * LanguagePage
> * NotificationPage
> * RandomPage
>
> I think all the elements from those page objects belong to the
> ArticlePage. Furthermore, to avoid repeating things that are shared
> everywhere (e.g. notifications icon), we could have a BasePage from which
> all the other page objects could inherit. What do you think? I can work on
> refactoring this if you agree.
>
> --
> Juliusz
>
> _______________________________________________
> QA mailing list
> QA at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/qa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140114/5d6c5e15/attachment.html>


More information about the QA mailing list