Uploaded image for project: 'Archive of Our Own'
  1. AO3-5070

Intermittent failure in user_rename feature

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Medium
    • Resolution: DeployedToBeta
    • Affects Version/s: 0.9.197
    • Fix Version/s: 0.9.198
    • Milestone:
      Internal 0.9
    • Difficulty:
      Medium
    • Roadmap:
      User
    • Components:
      AutomatedTests

      Description

      On Travis, we see intermittent failures for the following scenario in features/users/user_rename.feature:

       Scenario: Changing username updates search results (bug AO3-3468)
          Given I have no users
            And I am logged in as "oldusername" with password "password"
            And I post a work "Epic story"
          When I visit the change username page for oldusername
            And I fill in "New user name" with "newusername"
            And I fill in "Password" with "password"
            And I press "Change User Name"
          Then I should get confirmation that I changed my username
          When I am on the the works page
          Then I should see "newusername"
            And I should see "Epic story"
            And I should not see "oldusername"
          # Has old name until indexes are updated
          When I search for works containing "oldusername"
          Then I should see "Epic story"
            And I should see "newusername"
          # Still doesn't yet work due to bug AO3-3468
          When all search indexes are updated
          When I search for works containing "oldusername"
          # Change the two lines below this comment to the reverse when bug is fixed
          Then I should not see "No results found"
            And I should see "Epic story"
          # Works properly regardless of bug
          When I search for works containing "newusername"
          Then I should see "Epic story"
      

      The line that fails is:

       And I should not see "oldusername"
      

      What should happen
      We'd like this test to reliably pass.

      To test
      No manual testing required.

        Attachments

          Activity

            People

            • Assignee:
              sarken sarken
              Reporter:
              sarken sarken
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: