fix(test): pw test fail issue

This commit is contained in:
Ramesh Mane
2024-01-27 10:42:33 +00:00
parent c5934eb8a1
commit 2144dcc8fa
6 changed files with 61 additions and 3 deletions

View File

@@ -85,6 +85,7 @@ test.describe('Column menu operations', () => {
insertAfterColumnTitle: 'Title',
});
await dashboard.grid.toolbar.fields.toggle({ title: 'Actors', isLocallySaved: false, checked: true });
await dashboard.grid.column.create({
title: 'InsertAfterColumn1',
type: 'SingleLineText',
@@ -104,6 +105,7 @@ test.describe('Column menu operations', () => {
isDisplayValue: true,
});
await dashboard.grid.toolbar.fields.toggle({ title: 'Actors', isLocallySaved: false, checked: true });
await dashboard.grid.column.create({
title: 'InsertBeforeColumn1',
type: 'SingleLineText',
@@ -121,6 +123,7 @@ test.describe('Column menu operations', () => {
isDisplayValue: true,
});
await dashboard.grid.toolbar.fields.toggle({ title: 'Actors', isLocallySaved: false, checked: true });
await dashboard.grid.column.hideColumn({
title: 'Actors',
});

View File

@@ -63,8 +63,8 @@ test.describe('Relational Columns', () => {
///////////// Belongs to
//
await dashboard.treeView.openTable({ title: 'City' });
await dashboard.grid.toolbar.fields.toggle({ title: 'Country', isLocallySaved: false, checked: true });
const countryList = [['Spain'], ['Saudi Arabia']];
for (let i = 0; i < countryList.length; i++) {
await dashboard.grid.cell.verifyVirtualCell({
@@ -79,6 +79,7 @@ test.describe('Relational Columns', () => {
///////////// Many to many
//
await dashboard.treeView.openTable({ title: 'Actor' });
await dashboard.grid.toolbar.fields.toggle({ title: 'Films', isLocallySaved: false, checked: true });
const filmList = [
[
'ACADEMY DINOSAUR',