Add new Behat test steps for validating download urls

Created on 19 January 2024, 10 months ago
Updated 13 February 2024, 9 months ago

Problem/Motivation

As a developer I want to test if certain download url can be accessed by checking response code (200, 404, 403,..) and response headers.

Steps to reproduce

/

Proposed resolution

Provide 3 new Behat test steps:

@When I try to download :url
@then I should see response status code :statusCode
@Then I should see in the response header :header with :value

Example:
Given I am logged in as "user"
When I try to download "/download-url"
Then I should see response status code 200
And I should see in the response header "Content-Type" with "application/pdf"

Remaining tasks

/

User interface changes

/

API changes

/

Data model changes

/

Feature request
Status

Fixed

Version

12.0

Component

Other

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024