1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00

Chore: Disable flaky end-to-end PDF link test (#11248)

This commit is contained in:
Henry Heino 2024-10-26 13:00:32 -07:00 committed by GitHub
parent 08f29b7866
commit 3a316a1dbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,24 +78,6 @@ test.describe('markdownEditor', () => {
await mainScreen.noteEditor.toggleEditorsButton.click(); await mainScreen.noteEditor.toggleEditorsButton.click();
await expectToBeRendered(); await expectToBeRendered();
// Clicking on the PDF link should attempt to open it in a viewer
await expect(pdfLink).toBeVisible();
const nextOpenFilePromise = electronApp.evaluate(({ shell }) => {
return new Promise<string>(resolve => {
const openPath = async (url: string) => {
resolve(url);
return '';
};
shell.openPath = openPath;
});
});
await pdfLink.click();
expect(await nextOpenFilePromise).toMatch(/\.pdf$/);
// Should not have rendered something else in the viewer frame
await expectToBeRendered();
}); });
test('preview pane should render video attachments', async ({ mainWindow, electronApp }) => { test('preview pane should render video attachments', async ({ mainWindow, electronApp }) => {