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

Dreamwidth importing test fails due to a change in the image URL

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: High
    • Resolution: DeployedToBeta
    • Affects Version/s: 0.9.204
    • Fix Version/s: 0.9.205
    • Milestone:
      Internal 0.9
    • Difficulty:
      Medium
    • Roadmap:
      WorkImporting
    • Components:
      AutomatedTests

      Description

      Running cucumber features/importing/work_import_dw.feature:102 # Scenario: Creating a new work from an DW story that is posted to a community fails with

      (::) failed steps (::)
      expected to find xpath "//img[@src='http://www.rbreu.de/fan/stanwood_title_400.png']" but there were no matches (RSpec::Expectations::ExpectationNotMetError)
      ./features/step_definitions/generic_steps.rb:94:in `block (2 levels) in <top (required)>'
      ./features/step_definitions/web_steps.rb:14:in `with_scope'
      ./features/step_definitions/generic_steps.rb:93:in `/^I should see the image "([^"]*)" text "([^"]*)"(?: within "([^"]*)")?$/'
      features/importing/work_import_dw.feature:120:in `And I should see the image "src" text "http://www.rbreu.de/fan/stanwood_title_400.png"'
      Failing Scenarios:
      cucumber features/importing/work_import_dw.feature:102 # Scenario: Creating a new work from an DW story that is posted to a community
      

      It fails because the URL for the image in the post has changed.

      While we could just update the URL in the test, we should ideally use our own Dreamwidth account and community for this test anyway so we can avoid surprises like this in the future.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: