Page MenuHomePhabricator

Browser tests failing due to inability of "Selenium user" to create pages via API without getting a 500
Closed, DuplicatePublic

Description

All reading web's browser steps (https://integration.wikimedia.org/ci/view/Reading-Web/) are failing due to a 500 API error.
This means we can't be certain we are shipping broken code in this weeks deploy.

Example:

    @chrome @firefox @vagrant @integration @en.m.wikipedia.beta.wmflabs.org
Feature: Integration

  Scenario: Survey is visible with quicksurvey=true flag                                   # tests/browser/features/integration.feature:6
    Given the quick survey test pages are installed                                        # tests/browser/features/support/step_definitions/common_steps.rb:1
      unexpected HTTP response (500) (MediawikiApi::HttpError)
      ./tests/browser/features/support/step_definitions/common_steps.rb:2:in `/^the quick survey test pages are installed$/'
      tests/browser/features/integration.feature:7:in `Given the quick survey test pages are installed'
    When I am on the "Quick survey test page stub" page with the quick survey flag enabled # tests/browser/features/support/step_definitions/common_steps.rb:28
    And the page has fully loaded                                                          # tests/browser/features/support/step_definitions/common_steps.rb:72
    And the survey code has fully loaded                                                   # tests/browser/features/support/step_definitions/common_steps.rb:83
    Then I should see the survey                                                           # tests/browser/features/support/step_definitions/common_steps.rb:68

Failing Scenarios:
cucumber tests/browser/features/integration.feature:6 # Scenario: Survey is visible with quicksurvey=true flag

I can replicate this most easily in QuickSurveys

export MEDIAWIKI_ENVIRONMENT=beta
export MEDIAWIKI_URL=https://en.m.wikipedia.beta.wmflabs.org/wiki/
export MEDIAWIKI_API_URL=https://en.wikipedia.beta.wmflabs.org/w/api.php
bundle exec cucumber tests/browser/features/integration.feature 
export MEDIAWIKI_USER=***
export MEDIAWIKI_PASS=***