Problem/Motivation

In order to prepare for #2775653: JavascriptTests with webDriver we deprecated http status and header assertion on \Drupal\FunctionalJavascriptTests\JSWebAssert, see \Drupal\FunctionalJavascriptTests\WebDriverWebAssert

Sadly we missed some

Proposed resolution

Add them as well:

  • \Behat\Mink\WebAssert::responseHeaderContains
  • \Behat\Mink\WebAssert::responseHeaderNotContains
  • \Behat\Mink\WebAssert::responseHeaderMatches
  • \Behat\Mink\WebAssert::responseHeaderNotMatches

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner created an issue. See original summary.

dawehner’s picture

ioana apetri’s picture

Assigned: Unassigned » ioana apetri

I am going to work on this issue.

ioana apetri’s picture

Hello, here is my patch,
Please review.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

We need to ensure to update the change record: https://www.drupal.org/node/2857562 should this be done before or after the commit?

larowlan’s picture

Can be done either, but before preferred.

dawehner’s picture

Done

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 4: phpunit-2928522-3-D8.patch, failed testing. View results

dawehner’s picture

Status: Needs work » Reviewed & tested by the community

Random failure

larowlan’s picture

Re-tested

catch’s picture

catch’s picture

Committed 4a338bf and pushed to 8.5.x. Thanks!

  • catch committed 4a338bf on 8.5.x
    Issue #2928522 by yo30, dawehner: \Drupal\FunctionalJavascriptTests\...
larowlan’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.