diff --git a/visualization/app/codeCharta/ui/ribbonBar/areaSettingsPanel.po.ts b/visualization/app/codeCharta/ui/ribbonBar/areaSettingsPanel.po.ts deleted file mode 100644 index a47ce9ab2c..0000000000 --- a/visualization/app/codeCharta/ui/ribbonBar/areaSettingsPanel.po.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { clickButtonOnPageElement } from "../../../puppeteer.helper" - -export const AreaSettingsPanelPageObject = { - async toggleDefaultMargin() { - await clickButtonOnPageElement("cc-area-settings-panel mat-checkbox") - return this.isDefaultMarginEnabled() - }, - async isDefaultMarginEnabled() { - return page.$eval("cc-area-settings-panel mat-checkbox", element => element.className.includes("mat-checkbox-checked")) - }, - async toggleMarginBoundingBox() { - const marginToggleBoxHandle = await page.$("cc-area-settings-panel mat-checkbox") - return marginToggleBoxHandle.boundingBox() - }, - async resetButtonBoundingBox() { - const resetBoxHandle = await page.$("cc-area-settings-panel cc-reset-settings-button") - return resetBoxHandle.boundingBox() - } -} diff --git a/visualization/app/codeCharta/ui/ribbonBar/areaSettingsPanel/areaSettingsPanel.po.ts b/visualization/app/codeCharta/ui/ribbonBar/areaSettingsPanel/areaSettingsPanel.po.ts deleted file mode 100644 index 101aba617f..0000000000 --- a/visualization/app/codeCharta/ui/ribbonBar/areaSettingsPanel/areaSettingsPanel.po.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { clickButtonOnPageElement } from "../../../../puppeteer.helper" - -export const AreaSettingsPanelPageObject = { - async toggleDefaultMargin() { - await clickButtonOnPageElement("cc-area-settings-panel md-checkbox") - return this.isDefaultMarginEnabled() - }, - - async isDefaultMarginEnabled() { - return page.$eval("cc-area-settings-panel md-checkbox", element => element.className.includes("md-checked")) - }, - - async toggleMarginBoundingBox() { - const marginToggleBoxHandle = await page.$("cc-area-settings-panel md-checkbox .md-container") - return marginToggleBoxHandle.boundingBox() - }, - - async resetButtonBoundingBox() { - const resetBoxHandle = await page.$("cc-area-settings-panel cc-reset-settings-button") - return resetBoxHandle.boundingBox() - } -}