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

Intermittent test failure in users/user_delete.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, the following scenario fails intermittently:

      Scenario: Delete a user who has coauthored a work
        Given  the following activated users exist
          | login     | password |
          | otheruser | password |
          And I am logged in as "testuser"
          And I coauthored the work "Shared" as "testuser" with "otheruser"
        When I try to delete my account
        Then I should see "What do you want to do with your works?"
        When I choose "Remove me completely as co-author"
          And I press "Save"
        Then I should see "You have successfully deleted your account"
          And a user account should not exist for "testuser"
          And I should be logged out
        # TODO - make this confirmation step better
        When I go to the works page
        Then I should see "otheruser"
          And I should not see "testuser"
      

      The failure is on the last line, and it is:

       expected #has_no_content?("testuser") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
        ./features/step_definitions/web_steps.rb:194:in `block (2 levels) in <top (required)>'
        ./features/step_definitions/web_steps.rb:14:in `with_scope'
        ./features/step_definitions/web_steps.rb:192:in `/^(?:|I )should not see "([^"]*)"(?: within "([^"]*)")?$/'
        features/users/user_delete.feature:96:in `And I should not see "testuser"'
      

      What should happen instead
      The test should pass reliably

      How to test
      No manual testing needed

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: