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

Intermittent test failure in works/work_create.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:
      Work
    • Components:
      AutomatedTests

      Description

      On Codeship, the following scenario in works/work_create.feature sometimes fails:

        Scenario: Adding a coauthor to a work adds the coauthor to all existing chapters.
          Given the user "author" exists and is activated
            And the user "coauthor" exists and is activated
      
          When I am logged in as "author"
            And I post the chaptered work "Chaptered Work"
            And I add the co-author "coauthor" to the work "Chaptered Work"
          Then I should see "author, coauthor" within ".byline"
          When I follow "Next Chapter →"
          Then I should see "Chapter 2"
            And I should see "author, coauthor" within ".byline"
      

      The failure is:

        expected to find text "author, coauthor" in "author" (RSpec::Expectations::ExpectationNotMetError)
        ./features/step_definitions/web_steps.rb:141:in `block (2 levels) in <top (required)>'
        ./features/step_definitions/web_steps.rb:14:in `block in with_scope'
        ./features/step_definitions/web_steps.rb:14:in `with_scope'
        ./features/step_definitions/web_steps.rb:140:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
        features/works/work_create.feature:302:in `Then I should see "author, coauthor" within ".byline"'
      

      What should happen
      The test should consistently pass

      How to test
      No manual testing required

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: