Browse Source

work on geo data column tests - WIP

pull/4749/head
Daniel Spaude 2 years ago
parent
commit
611ff29f90
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 19
      tests/playwright/pages/Dashboard/ViewSidebar/index.ts

19
tests/playwright/pages/Dashboard/ViewSidebar/index.ts

@ -37,18 +37,17 @@ export class ViewSidebarPage extends BasePage {
async activateGeoDataEasterEgg() {
await this.rootPage.pause();
if (await this.get().isVisible()) {
const toggleViewSidebarButton = await this.rootPage.$('.nc-toggle-right-navbar');
if (!(await this.get().isVisible())) {
// await this.get().click();
await (await this.rootPage.$('.nc-toggle-right-navbar')).click();
await toggleViewSidebarButton.click();
}
await this.rootPage.pause();
await this.verifyVisibility({ isVisible: true });
await this.rootPage.pause();
await this.rootPage.pause();
// await this.rootPage.pause();
// await this.verifyVisibility({ isVisible: true });
// await this.rootPage.pause();
const element = await this.rootPage.$('.nc-active-btn');
const { x, y } = await element.boundingBox();
// const element = await this.rootPage.$('.nc-active-btn');
const { x, y } = await toggleViewSidebarButton.boundingBox();
// Click the element 5 times in a row
for (let i = 0; i < 5; i++) {
await this.rootPage.mouse.click(x + 10, y);
@ -57,7 +56,7 @@ export class ViewSidebarPage extends BasePage {
await this.rootPage.pause();
if (!(await this.get().isVisible())) {
// await this.get().click();
await (await this.rootPage.$('.nc-toggle-right-navbar')).click();
await toggleViewSidebarButton.click();
}
await this.rootPage.pause();
// await this.verifyVisibility({ isVisible: true });

Loading…
Cancel
Save