mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-02 02:57:23 +00:00
fix(pw): verify personal view test fail issue
This commit is contained in:
@@ -90,7 +90,27 @@ export class ViewSidebarPage extends BasePage {
|
||||
}
|
||||
|
||||
// Todo: Make selection better
|
||||
async verifyView({ title, index }: { title: string; index: number }) {
|
||||
async verifyView({
|
||||
title,
|
||||
index,
|
||||
baseTitle,
|
||||
sourceTitle,
|
||||
}: {
|
||||
title: string;
|
||||
index: number;
|
||||
baseTitle?: string;
|
||||
sourceTitle?: string;
|
||||
}) {
|
||||
await this.dashboard.leftSidebar.verifyBaseListOpen(!!baseTitle);
|
||||
|
||||
if (baseTitle) {
|
||||
await this.dashboard.sidebar.baseNode.verifyActiveProject({ baseTitle, open: true });
|
||||
}
|
||||
|
||||
if (sourceTitle) {
|
||||
await this.dashboard.treeView.openSource({ title: sourceTitle });
|
||||
}
|
||||
|
||||
// flicker while page loading
|
||||
await this.get()
|
||||
.locator('[data-testid="view-item"]')
|
||||
|
||||
Reference in New Issue
Block a user