Skip to content

Commit

Permalink
e2e fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sytolk committed Mar 14, 2024
1 parent 1078c84 commit c5eb8a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/e2e/folderprops.pw.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,20 +312,20 @@ test.describe('TST02 - Folder properties', () => {
'showProperties',
);
const initScreenshot = await getElementScreenshot(
'[data-tid=perspectiveGridFileTable]',
'[data-tid=fsEntryName_empty_folder]', //perspectiveGridFileTable
);
await clickOn('[data-tid=changeThumbnailTID]');
await clickOn('ul[data-tid=predefinedThumbnailsTID] > li');
await clickOn('[data-tid=confirmCustomThumb]');

const imgElement = await global.client.$(
'[data-tid=fsEntryName_empty_folder] img',
const imgElement = await global.client.waitForSelector(
'[data-tid=fsEntryName_empty_folder] img', //[contenteditable=true]'
);
const srcValue = await imgElement.getAttribute('src');
expect(srcValue.indexOf('.ts/tst.jpg')).toBeGreaterThan(-1);

const withThumbScreenshot = await getElementScreenshot(
'[data-tid=perspectiveGridFileTable]',
'[data-tid=fsEntryName_empty_folder]',
);
expect(initScreenshot).not.toBe(withThumbScreenshot);

Expand All @@ -334,7 +334,7 @@ test.describe('TST02 - Folder properties', () => {
await clickOn('[data-tid=clearThumbnail]');

const thumbRemovedScreenshot = await getElementScreenshot(
'[data-tid=perspectiveGridFileTable]',
'[data-tid=fsEntryName_empty_folder]',
);
expect(initScreenshot).toBe(thumbRemovedScreenshot);
});
Expand Down

0 comments on commit c5eb8a7

Please sign in to comment.