Last modified: 2013-10-28 18:04:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55295, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53295 - VisualEditor tests fail due to introductory beta disclaimer popup
VisualEditor tests fail due to introductory beta disclaimer popup
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Quality Assurance (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-24 09:02 UTC by spage
Modified: 2013-10-28 18:04 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2013-08-24 09:02:36 UTC
cucumber features/visual_editor_anon.feature:5 # Scenario: Basic edit fails 
because VisualEditor these days shows an introductory disclaimer:

  This is our new, easier way to edit. It's still in beta,
  which means you might find parts of the page you can't edit...
and so it fails with
  expected "You are not currently logged in. 
which isn't visible until you dismiss the popup.

I think the same explains a
  timed out after 5 seconds, Element was not visible in 5 seconds
that I'm getting in the similar
cucumber features/visual_editor_logged_in.feature:5 # Scenario: Basic edit
after applying Gerrit change #80709.

The popup is in a div containing an iframe containing more divs until class="ve-ui-mwBetaWelcomeDialog-content", and then tests have to click outside it to dismiss it; and some day it will go away.

Instead it seems better to set the ve-beta-welcome-dialog cookie to 1 upon visiting the site, which will turn off this disclaimer dialog.
Comment 1 Chris McMahon 2013-08-26 21:42:50 UTC
I've been running these tests against test2wiki, which doesn't have that problem.  https://gerrit.wikimedia.org/r/#/c/80709/ should make it possible to run these against beta labs now that VE seems to be deployed there reliably
Comment 2 James Forrester 2013-08-26 21:46:41 UTC
Also note that the beta welcome message will be rolled out to all wikis soon.
Comment 3 Chris McMahon 2013-08-26 21:55:45 UTC
When it shows up on test2 and/or beta I'll dismiss it in the test. 

Why is VE using an iframe for this?  (and using iframes in general?)
Comment 4 Roan Kattouw 2013-08-27 01:49:45 UTC
(In reply to comment #3)
> Why is VE using an iframe for this?  (and using iframes in general?)
For the welcome message, we don't technically need to use an iframe. In that case we just use an iframe because all of our other dialogs use iframes.

In general, we use iframes for dialogs and inspectors because we need to be able to have two selections at the same time. For instance, when you inspect a link, the link is selected, but you also have a cursor in the text field in the inspector. Because you can only have one selection in any given HTML document, we need the edit surface and the text field to be in different documents, and so we put the text field (along with most of the rest of the inspector) in an iframe.

Dialogs use iframes for similar reasons: when the user interacts with UI elements in the dialog, that needs to not affect their selection in the edit surface. The welcome dialog doesn't have any elements that can steal the focus or selection so it's not an issue there, but since it uses the generic dialog code it's automatically in an iframe.
Comment 5 Željko Filipin 2013-08-29 12:56:27 UTC
Should this be closed since 80709 is merged into master?
Comment 6 spage 2013-08-29 19:43:06 UTC
(In reply to comment #5)
> Should this be closed since 80709 is merged into master?
No, that's a different problem breaking VE tests.

Please can you change the VE tests to have an
    If there is an introductory welcome message
      then dismiss it
stanza?
Comment 7 Chris McMahon 2013-08-29 19:56:42 UTC
Honestly, I would rather that VE behave the same on beta, test2wiki, and production. Preferably at more or less the same time.
Comment 8 Željko Filipin 2013-10-10 13:25:50 UTC
Chris, this is fixed, right? Is there anything left here to do? Should we close the bug?
Comment 9 Chris McMahon 2013-10-28 18:04:17 UTC
fixed

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links