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:
parent
08f29b7866
commit
3a316a1dbc
@ -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 }) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user