fix(test): some pw test fail issue

This commit is contained in:
Ramesh Mane
2024-12-26 08:01:47 +01:00
parent 44b635b324
commit f8b1e1a2ef
2 changed files with 3 additions and 3 deletions

View File

@@ -223,8 +223,8 @@ export class ToolbarPage extends BasePage {
const menuItems = {
creator: ['Download', 'Upload'],
editor: ['Download', 'Upload'],
commenter: ['Download CSV', 'Download Excel'],
viewer: ['Download CSV', 'Download Excel'],
commenter: ['CSV', 'Excel'],
viewer: ['CSV', 'Excel'],
};
const vMenu = this.rootPage.locator('.nc-dropdown-actions-menu:visible');
for (const item of menuItems[param.role.toLowerCase()]) {

View File

@@ -258,7 +258,7 @@ test.describe('Shared view', () => {
// verify download
await sharedPage.grid.topbar.clickDownload(
'Download CSV',
'CSV',
isSqlite(context) || isPg(context) ? 'expectedDataSqlite.txt' : 'expectedData.txt'
);
});