Browse Source

fix(test): workspace crum op test fails issue

pull/9722/head
Ramesh Mane 5 days ago
parent
commit
6fcaeda8b1
  1. 2
      tests/playwright/pages/Dashboard/WorkspaceSettings/index.ts
  2. 2
      tests/playwright/pages/Dashboard/common/LeftSidebar/index.ts

2
tests/playwright/pages/Dashboard/WorkspaceSettings/index.ts

@ -25,7 +25,7 @@ export class WorkspaceSettingsObject extends BasePage {
async renameWorkspace({ newTitle }: { newTitle: string }) {
await this.clickSettingsTab();
await this.get().getByTestId('nc-workspace-settings-settings-rename-input').fill(newTitle);
const submitAction = () => this.get().getByTestId('nc-workspace-settings-settings-rename-submit').click();
const submitAction = () => this.rootPage.keyboard.press('Enter');
await this.waitForResponse({
uiAction: submitAction,

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

@ -85,7 +85,7 @@ export class LeftSidebarPage extends BasePage {
await this.clickWorkspace();
// TODO: THere is one extra html attribute
await expect(this.rootPage.getByTestId('nc-workspace-list')).toHaveCount(count + 1);
await expect(this.modal_workspace.getByTestId('nc-workspace-list')).toHaveCount(count + 1);
}
async getWorkspaceList() {

Loading…
Cancel
Save