mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 01:55:30 +00:00
fix(test): some pw test fail issue
This commit is contained in:
@@ -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()]) {
|
||||
|
||||
@@ -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'
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user