Files
halo-dark-mode-plugin/third-party/darkreader/tests/browser/e2e/export.tests.ts
T

14 lines
447 B
TypeScript

import {timeout} from '../../support/test-utils';
describe('Export settings', () => {
it('Should download file', async () => {
await timeout(1000);
const p = new Promise<{ok: boolean}>((resolve) => backgroundUtils.onDownload(resolve));
await popupUtils.saveFile('example', 'content');
expect((await p).ok).toBe(true);
if (product === 'firefox') {
await timeout(1000);
}
});
});