Skip to content

Commit a002b75

Browse files
committed
fix handling of move to trash
1 parent a234439 commit a002b75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui-tests/test/filebrowser.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test.describe('File Browser', () => {
2626
const toolbar = page.getByRole('toolbar');
2727

2828
expect(toolbar.getByText('Rename')).toBeVisible();
29-
expect(toolbar.getByText('Delete')).toBeVisible();
29+
expect(toolbar.getByText('Move to Trash')).toBeVisible();
3030
});
3131

3232
test('Select one file', async ({ page, tmpPath }) => {
@@ -37,7 +37,7 @@ test.describe('File Browser', () => {
3737

3838
const toolbar = page.getByRole('toolbar');
3939

40-
['Rename', 'Delete', 'Open', 'Download', 'Delete'].forEach(async (text) => {
40+
['Rename', 'Open', 'Download', 'Move to Trash'].forEach(async (text) => {
4141
expect(toolbar.getByText(text)).toBeVisible();
4242
});
4343
});
@@ -54,7 +54,7 @@ test.describe('File Browser', () => {
5454

5555
expect(toolbar.getByText('Rename')).toBeHidden();
5656
expect(toolbar.getByText('Open')).toBeHidden();
57-
expect(toolbar.getByText('Delete')).toBeVisible();
57+
expect(toolbar.getByText('Move to Trash')).toBeVisible();
5858
});
5959

6060
test('Select files and open', async ({ page, tmpPath }) => {

0 commit comments

Comments
 (0)