Closed (duplicate)
Project:
Drupal core
Version:
8.6.x-dev
Component:
image.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Sep 2016 at 16:28 UTC
Updated:
20 May 2018 at 06:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
michielnugter commentedComment #5
ApacheEx commentedHere is a patch. Only
testAjaxEnabledEffectFormhas ajax part.Comment #7
dawehnerThank you for starting this patch!
Note: We try to avoid
assertWaitOnAjaxRefreshand rather use one of the other methods on\Drupal\FunctionalJavascriptTests\JSWebAssertComment #8
ApacheEx commentedthanks for your feedback. Here is updated patch.
I've also found out why it randomly fails (even on my local).
A style label which generates like this:
can contain HTML special characters like
&, ", ', <, >.For example,
"uMg>&pjwill be converted to"uMg>&pjby Html::escape, but browser will convert this html to"uMg>&pj.Markup::create(Xss::filter($style_label))seems to fix it.Comment #9
ApacheEx commentedhm, if this patch is passed then whole
ImageAdminStylesTestcan be converted toBrowserTestBase.Let's wait for the result and decide next steps.
Comment #11
Anonymous (not verified) commentedAdded related issue with JTB version.
Comment #12
mondrakeThis was done in #2959466: Convert web tests to browser tests for image module (Part 2).