I'm trying to test a web text editor that saves and opens files from the local system. I'm using Cypress v11.2.0 with Chrome v107.
The file operations use the File System Access API through the browser-fs-access library.
I'm unable to test any of the file operations like save, for example. When the underline system function showSaveFilePicker is called, the test throws an error.
This is the test code:
it("'new' creates and links to an empty file", () => {
cy.visit("/");
cy.get("#new").click();
});
Here is the error image:
The operation is working fine in the app.
My question is: how should someone test a button that evokes showSaveFilePicker
using Cypress?