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
@@ -719,11 +719,12 @@ class UwWcmsBasicTest extends BrowserTestBase {
// Create CodePen block.
$edit = [
'edit-settings-label' => $this->randomString(),
'edit-settings-block-form-field-codepen-id-0-value' => $this->randomMachineName(),
// Letters only, 6-7 characters.
'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(),
'edit-settings-block-form-field-codepen-default-tabs' => $this->randomMachineName(),
'edit-settings-block-form-field-codepen-default-tabs' => 'result',
'edit-settings-block-form-field-codepen-pixel-height-0-value' => rand(150, 1000),
];
$this->submitForm($edit, 'Add block');
Loading