Commit 5dc483d6 authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-4535 Change assertRaw() to assertSession()->responseContains()

Change record:
https://www.drupal.org/node/3129738
parent 69162349
......@@ -1265,7 +1265,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertFieldByXPath('//object[@class="tableauViz"]/param[@name="name" and @value="' . $edit['edit-settings-block-form-field-uw-tbl-tableau-name-0-value'] . '"]');
$this->assertFieldByXPath('//object[@class="tableauViz"]/param[@name="tabs" and @value="yes"]');
$this->assertFieldByXPath('//div[@class="uw-tableau__wrapper"]/script');
$this->assertRaw("vizElement.style.height = '" . $edit['edit-settings-block-form-field-uw-tbl-tableau-height-0-value'] . "px';");
$this->assertSession()->responseContains("vizElement.style.height = '" . $edit['edit-settings-block-form-field-uw-tbl-tableau-height-0-value'] . "px';");
break;
}
}
......@@ -2594,7 +2594,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
foreach ($textformats as $textformat) {
$this->drupalGet('admin/config/content/formats/manage/' . $textformat);
$this->assertSession()->statusCodeEquals(200);
$this->assertRaw($json_encode('<li data-drupal-ckeditor-button-name="Anchor" class="ckeditor-button"><a href="#" role="button" title="Anchor" aria-label="Anchor">'));
$this->assertSession()->responseContains($json_encode('<li data-drupal-ckeditor-button-name="Anchor" class="ckeditor-button"><a href="#" role="button" title="Anchor" aria-label="Anchor">'));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment