There is a random fail around HTML encoding in AjaxTest that is getting in the way of some test runs.

fail: [Other] Line 109 of modules/ubercart/uc_store/src/Tests/AjaxTest.php:
Escaped "1"jy>&ag" found
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave created an issue. See original summary.

longwave’s picture

Issue summary: View changes
longwave’s picture

Status: Active » Needs review
FileSize
1.96 KB

A minimal test case to prove this is not strictly an Ubercart issue is attached. None of the three assert methods are capable of finding the option text, even though it appears on the page.

The problem appears to be that when WebTestBase::drupalProcessAjaxResponse() manipulates the HTML output via DOMDocument, " gets converted back into " but other entities such as < are still escaped.

longwave’s picture

TR’s picture

longwave’s picture

We can use randomMachineName() for this specific case instead of randomString().

The last submitted patch, 3: 2664320.patch, failed testing.

  • longwave committed de2ec05 on 8.x-4.x
    Issue #2664320 by longwave: Random fail in AjaxTest
    
longwave’s picture

Status: Needs review » Fixed

Committed #6

Status: Fixed » Closed (fixed)

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