Commit 758ebfc2 authored by Liam Morland's avatar Liam Morland
Browse files

ISTWCMS-4176: Test powerbi embed block

parent 42c4d5a5
......@@ -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