Skip to content
Snippets Groups Projects

ISTWCMS-4182: Test codepen embed block

Merged Liam Morland requested to merge feature/ISTWCMS-4182-lkmorlan-test-codepen-embed into 8.x-3.x
@@ -713,7 +713,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertSession()->pageTextNotContains('Generate automatic URL alias');
$this->assertSession()->pageTextNotContains('URL alias');
// Test Tableau block.
// Test specific blocks.
switch ($block) {
case 'CodePen':
// Create CodePen block.
@@ -723,7 +723,9 @@ class UwWcmsBasicTest extends BrowserTestBase {
'edit-settings-block-form-field-codepen-id-0-value' => substr(preg_replace('/[^a-zA-Z]+/', '', $this->randomMachineName(24)), 0, 7),
'edit-settings-block-form-field-codepen-username-0-value' => $this->randomMachineName(),
'edit-settings-block-form-field-codepen-displayed-author-0-value' => $this->randomString(),
'edit-settings-block-form-field-codepen-displayed-title-0-value' => $this->randomString(),
// Double-quote not possible because it will make the XPath invalid
// later in this test. In normal use, double-quote would be allowed.
'edit-settings-block-form-field-codepen-displayed-title-0-value' => str_replace('"', '', $this->randomString()),
'edit-settings-block-form-field-codepen-default-tabs' => 'result',
'edit-settings-block-form-field-codepen-pixel-height-0-value' => rand(150, 1000),
];
@@ -777,8 +779,8 @@ class UwWcmsBasicTest extends BrowserTestBase {
$edit = [
'edit-settings-label' => $this->randomString(),
'edit-settings-block-form-field-uw-tbl-server' => 'Public',
'edit-settings-block-form-field-uw-tbl-site-name-0-value' => $this->randomString(),
'edit-settings-block-form-field-uw-tbl-tableau-name-0-value' => $this->randomString(),
'edit-settings-block-form-field-uw-tbl-site-name-0-value' => $this->randomMachineName(),
'edit-settings-block-form-field-uw-tbl-tableau-name-0-value' => $this->randomMachineName(),
'edit-settings-block-form-field-uw-tbl-tableau-height-0-value' => rand(100, 1000),
'edit-settings-block-form-field-uw-tbl-display-tabs' => 'Yes',
];
Loading