TagSpaces is an offline, open source, document manager with tagging support
run TST0814 on windows only
sytolk727aa715a669
diff --git a/tests/e2e/fileopener.pw.e2e.js b/tests/e2e/fileopener.pw.e2e.jsindex c43f43086..1a60ba063 100644--- a/tests/e2e/fileopener.pw.e2e.js+++ b/tests/e2e/fileopener.pw.e2e.js@@ -300,15 +300,17 @@ describe('TST08 - File folder properties', () => {* TODO dont work on web tests https://trello.com/c/93iEURf4/731-migrate-fullscreen-to-https-githubcom-snakesilk-react-fullscreen* dont work on electron Mac https://github.com/microsoft/playwright/issues/1086*/- it.skip('TST0814 - Open file fullscreen and exit with close button [minio,electron]', async () => {- // open fileProperties- await clickOn(selectorFile);- await clickOn('[data-tid=fileContainerSwitchToFullScreen]');- await expectElementExist('[data-tid=fullscreenTID]', true, 10000);- // await takeScreenshot('TST0814 fullscreenTID exist true');- await clickOn('[data-tid=fullscreenTID]');- // await takeScreenshot('TST0814 fullscreenTID exist false');- await expectElementExist('[data-tid=fullscreenTID]', false, 10000);+ it('TST0814 - Open file fullscreen and exit with close button [minio,electron]', async () => {+ if (global.isWin) {+ // open fileProperties+ await clickOn(selectorFile);+ await clickOn('[data-tid=fileContainerSwitchToFullScreen]');+ await expectElementExist('[data-tid=fullscreenTID]', true, 10000);+ // await takeScreenshot('TST0814 fullscreenTID exist true');+ await clickOn('[data-tid=fullscreenTID]');+ // await takeScreenshot('TST0814 fullscreenTID exist false');+ await expectElementExist('[data-tid=fullscreenTID]', false, 10000);+ }});it.skip('TST0815 - Test opening file, while TS is in fullscreen(F11) [manual]', async () => {});diff --git a/tests/setup-after-env.js b/tests/setup-after-env.jsindex e90841a82..12f9bc600 100644--- a/tests/setup-after-env.js+++ b/tests/setup-after-env.js@@ -8,6 +8,7 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 300000;// global.isWin = /^win/.test(process.platform);// global.isMac = /^darwin/.test(process.platform);global.isWeb = process.env.NODE_JEST === 'test_web';+global.isWin = /win32|mswin(?!ce)|mingw|bccwin|cygwin/i.test(process.platform);global.isPlaywright = process.env.PLAYWRIGHT === 'test_playwright';global.isHeadlessMode = process.env.HEADLESS_MODE === 'true';global.isMinio = global.isWeb || process.env.NODE_JEST === 'test_minio';