Commit 032c472f authored by Lily Yan's avatar Lily Yan
Browse files

Merge branch 'feature/ISTWCMS-4176-lkmorlan-theme-PowerBI-embed' into '8.x-3.x'

ISTWCMS-4176: Test PowerBI block

See merge request !113
parents 42c4d5a5 758ebfc2
......@@ -681,6 +681,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
'Image gallery',
'Instagram',
'Mailman subscription',
'PowerBI',
'Related links',
'Remote video',
'Tableau visualization',
......@@ -728,6 +729,19 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertFieldByXPath('//div[@class="uw-google-maps"]/iframe[@height="' . $edit['edit-settings-block-form-field-gmaps-height-0-value'] . '" and @src="' . $edit['edit-settings-block-form-field-gmaps-embedded-url-0-uri'] . '"]');
break;
case 'PowerBI':
// Create PowerBI block.
$edit = [
'edit-settings-label' => $this->randomString(),
'edit-settings-block-form-field-uw-powerbi-url-0-value' => 'https://app.powerbi.com/' . $this->randomMachineName(),
];
$this->submitForm($edit, 'Add block');
// Test that the PowerBI block markup appears on the page.
$this->assertSession()->pageTextContains($edit['edit-settings-label']);
$this->assertFieldByXPath('//div[@class="uw-powerbi"]/iframe[@src="' . $edit['edit-settings-block-form-field-uw-powerbi-url-0-value'] . '"]');
break;
case 'Tableau visualization':
// Create Tableau block.
$edit = [
......
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