mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-02 02:47:29 +00:00
fix(pw): test fail issue
This commit is contained in:
@@ -367,15 +367,9 @@ export interface ViewList {
|
||||
lock_type: 'collaborative' | 'locked' | 'personal';
|
||||
/** Indicates if this is the default view. */
|
||||
is_default?: boolean;
|
||||
/**
|
||||
* User ID of the creator.
|
||||
* @format uuid
|
||||
*/
|
||||
/** User ID of the creator. */
|
||||
created_by: string;
|
||||
/**
|
||||
* User ID of the owner. Applicable only for personal views.
|
||||
* @format uuid
|
||||
*/
|
||||
/** User ID of the owner. Applicable only for personal views. */
|
||||
owned_by?: string;
|
||||
/**
|
||||
* Timestamp of creation.
|
||||
@@ -432,10 +426,7 @@ export interface ViewBaseInUpdate {
|
||||
* - In case of partial list, fields not included in the list will be excluded from the view.
|
||||
*/
|
||||
export type ViewFields = {
|
||||
/**
|
||||
* Unique identifier for the field.
|
||||
* @format uuid
|
||||
*/
|
||||
/** Unique identifier for the field. */
|
||||
field_id: string;
|
||||
/** Indicates whether the field should be displayed in the view. */
|
||||
show: boolean;
|
||||
@@ -466,10 +457,7 @@ export type ViewRowColour =
|
||||
| {
|
||||
/** Mode of row coloring. In this mode, the color is selected based on a single select field. */
|
||||
mode: 'select';
|
||||
/**
|
||||
* Single select field ID to be used for colouring rows in the view.
|
||||
* @format uuid
|
||||
*/
|
||||
/** Single select field ID to be used for colouring rows in the view. */
|
||||
field_id: string;
|
||||
/** Whether to additionally apply the color as row background. */
|
||||
apply_as_row_background?: boolean;
|
||||
@@ -478,10 +466,7 @@ export type ViewRowColour =
|
||||
export interface ViewOptionsGrid {
|
||||
/** List of groups to be applied on the grid view. */
|
||||
groups?: {
|
||||
/**
|
||||
* Identifier for the field being sorted.
|
||||
* @format uuid
|
||||
*/
|
||||
/** Identifier for the field being sorted. */
|
||||
field_id: string;
|
||||
/**
|
||||
* Direction of the group, either 'asc' (ascending) or 'desc' (descending).
|
||||
@@ -498,10 +483,7 @@ export interface ViewOptionsGrid {
|
||||
|
||||
export interface ViewOptionsKanban {
|
||||
stack_by: {
|
||||
/**
|
||||
* Single select field ID to be used for stacking cards in kanban view.
|
||||
* @format uuid
|
||||
*/
|
||||
/** Single select field ID to be used for stacking cards in kanban view. */
|
||||
field_id: string;
|
||||
/**
|
||||
* Order of the stacks in kanban view. If not provided, the order will be determined by options listed in associated field.
|
||||
@@ -510,33 +492,21 @@ export interface ViewOptionsKanban {
|
||||
*/
|
||||
stack_order?: string[];
|
||||
};
|
||||
/**
|
||||
* Attachment field ID to be used as cover image in kanban view. If not provided, cover field configuration is skipped.
|
||||
* @format uuid
|
||||
*/
|
||||
/** Attachment field ID to be used as cover image in kanban view. If not provided, cover field configuration is skipped. */
|
||||
cover_field_id?: string;
|
||||
}
|
||||
|
||||
export interface ViewOptionsCalendar {
|
||||
date_ranges: {
|
||||
/**
|
||||
* Date field ID to be used as start date in calendar view.
|
||||
* @format uuid
|
||||
*/
|
||||
/** Date field ID to be used as start date in calendar view. */
|
||||
start_date_field_id: string;
|
||||
/**
|
||||
* Date field ID to be used as end date in calendar view.
|
||||
* @format uuid
|
||||
*/
|
||||
/** Date field ID to be used as end date in calendar view. */
|
||||
end_date_field_id?: string;
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface ViewOptionsGallery {
|
||||
/**
|
||||
* Attachment field ID to be used as cover image in gallery view. Is optional, if not provided, the first attachment field will be used.
|
||||
* @format uuid
|
||||
*/
|
||||
/** Attachment field ID to be used as cover image in gallery view. Is optional, if not provided, the first attachment field will be used. */
|
||||
cover_field_id?: string;
|
||||
}
|
||||
|
||||
@@ -720,23 +690,14 @@ export type ViewUpdate = ViewBaseInUpdate &
|
||||
);
|
||||
|
||||
export type View = {
|
||||
/**
|
||||
* Unique identifier for the view.
|
||||
* @format uuid
|
||||
*/
|
||||
/** Unique identifier for the view. */
|
||||
id: string;
|
||||
/** Indicates if this is the default view. Omitted if not the default view. */
|
||||
is_default?: boolean;
|
||||
} & ViewBase & {
|
||||
/**
|
||||
* User ID of the creator.
|
||||
* @format uuid
|
||||
*/
|
||||
/** User ID of the creator. */
|
||||
created_by?: string;
|
||||
/**
|
||||
* User ID of the owner.
|
||||
* @format uuid
|
||||
*/
|
||||
/** User ID of the owner. */
|
||||
owned_by?: string;
|
||||
/**
|
||||
* Timestamp of creation.
|
||||
|
||||
@@ -59,7 +59,7 @@ test.describe('Verify shortcuts', () => {
|
||||
skipOpeningModal: true,
|
||||
baseTitle: context.base.title,
|
||||
});
|
||||
await dashboard.treeView.verifyTable({ title: 'New Table' });
|
||||
await dashboard.treeView.verifyTable({ title: 'New Table', baseTitle: context.base.title });
|
||||
|
||||
// create new row
|
||||
await grid.column.clickColumnHeader({ title: 'Title' });
|
||||
|
||||
@@ -123,14 +123,17 @@ test.describe('Preview Mode', () => {
|
||||
await dashboard.treeView.verifyTable({
|
||||
title: 'Actor',
|
||||
exists: true,
|
||||
baseTitle: context.base.title,
|
||||
});
|
||||
await dashboard.treeView.verifyTable({
|
||||
title: 'Language',
|
||||
exists: false,
|
||||
baseTitle: context.base.title,
|
||||
});
|
||||
await dashboard.treeView.verifyTable({
|
||||
title: 'CustomerList',
|
||||
exists: false,
|
||||
baseTitle: context.base.title,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user