Browse Source

tests: label correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/6545/head
Pranav C 1 year ago
parent
commit
7d628af2c8
  1. 6
      tests/playwright/pages/Dashboard/common/LeftSidebar/index.ts

6
tests/playwright/pages/Dashboard/common/LeftSidebar/index.ts

@ -35,10 +35,10 @@ export class LeftSidebarPage extends BasePage {
async createProject({ title, context }: { title: string; context: NcContext }) {
title = isEE() ? title : `nc-${context.workerId}-${title}`;
await this.btn_newProject.click();
await this.rootPage.locator('.ant-modal-content:has-text(" Create Database")').waitFor();
await this.rootPage.locator('.ant-modal-content:has-text(" Create Database")').locator('input').fill(title);
await this.rootPage.locator('.ant-modal-content:has-text(" Create Base")').waitFor();
await this.rootPage.locator('.ant-modal-content:has-text(" Create Base")').locator('input').fill(title);
await this.rootPage
.locator('.ant-modal-content:has-text(" Create Database")')
.locator('.ant-modal-content:has-text(" Create Base")')
.locator('button.ant-btn-primary')
.click();
}

Loading…
Cancel
Save