|
|
@ -36,13 +36,33 @@ export class ViewSidebarPage extends BasePage { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async activateGeoDataEasterEgg() { |
|
|
|
async activateGeoDataEasterEgg() { |
|
|
|
|
|
|
|
await this.rootPage.pause(); |
|
|
|
|
|
|
|
if (await this.get().isVisible()) { |
|
|
|
|
|
|
|
// await this.get().click();
|
|
|
|
|
|
|
|
await (await this.rootPage.$('.nc-toggle-right-navbar')).click(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
await this.rootPage.pause(); |
|
|
|
|
|
|
|
await this.verifyVisibility({ isVisible: true }); |
|
|
|
|
|
|
|
await this.rootPage.pause(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.rootPage.pause(); |
|
|
|
|
|
|
|
|
|
|
|
const element = await this.rootPage.$('.nc-active-btn'); |
|
|
|
const element = await this.rootPage.$('.nc-active-btn'); |
|
|
|
const { x, y } = await element.boundingBox(); |
|
|
|
const { x, y } = await element.boundingBox(); |
|
|
|
|
|
|
|
|
|
|
|
// Click the element 5 times in a row
|
|
|
|
// Click the element 5 times in a row
|
|
|
|
for (let i = 0; i < 5; i++) { |
|
|
|
for (let i = 0; i < 5; i++) { |
|
|
|
await this.rootPage.mouse.click(x + 50, y); |
|
|
|
await this.rootPage.mouse.click(x + 10, y); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.rootPage.pause(); |
|
|
|
|
|
|
|
if (!(await this.get().isVisible())) { |
|
|
|
|
|
|
|
// await this.get().click();
|
|
|
|
|
|
|
|
await (await this.rootPage.$('.nc-toggle-right-navbar')).click(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
await this.rootPage.pause(); |
|
|
|
|
|
|
|
// await this.verifyVisibility({ isVisible: true });
|
|
|
|
|
|
|
|
await this.rootPage.pause(); |
|
|
|
|
|
|
|
await this.rootPage.getByTestId('toggle-geodata-feature-icon').click(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private async createView({ title, locator }: { title: string; locator: Locator }) { |
|
|
|
private async createView({ title, locator }: { title: string; locator: Locator }) { |
|
|
|