Skip to content

TagSpaces is an offline, open source, document manager with tagging support

add debug for web e2e

Stanimir032b0dd817af
diff --git a/package.json b/package.json
index 48c7a7345..cf31e7905 100644
--- a/package.json
+++ b/package.json
@@ -93,7 +93,7 @@
"test-playwright": "yarn test-refresh-data && cross-env JEST_JUNIT_OUTPUT_DIR=./tests DISABLE_WORKER=true NODE_ENV=test jest --config=jest.config.playwright.js -t 'electron' --verbose ./tests/e2e/",
"test-refresh-data": "rimraf tests/testdata-tmp && shx mkdir -p tests/testdata-tmp/file-structure && shx cp -rL tests/testdata/file-structure tests/testdata-tmp",
"test-playwright-web": "yarn test-refresh-data && cross-env SHOW_CONSOLE=true DEBUG=pw:api PLAYWRIGHT=test_playwright jest --config=jest.config.web.js -t 'web' --verbose ./tests/e2e/",
- "test-playwright-web-headless": "yarn test-refresh-data && cross-env JEST_JUNIT_OUTPUT_DIR=./tests PLAYWRIGHT=test_playwright HEADLESS_MODE=true jest --config=jest.config.web.js -t 'web' --verbose ./tests/e2e/",
+ "test-playwright-web-headless": "yarn test-refresh-data && cross-env SHOW_CONSOLE=true JEST_JUNIT_OUTPUT_DIR=./tests PLAYWRIGHT=test_playwright HEADLESS_MODE=true jest --config=jest.config.web.js -t 'web' --verbose ./tests/e2e/",
"playwright-show-trace": "npx playwright show-trace \"tests/test-reports/TST0813 - Delete file [web,minio,electron].zip\"",
"test-one-suite-headless": "cross-env HEADLESS_MODE=true jest --config=jest.config.web.js --verbose ./tests/e2e/fileopener.e2e.js",
"test-one-suite": "cross-env jest --config=jest.config.web.js --verbose ./tests/e2e/perspective-grid-right-button.e2e.js",
diff --git a/tests/e2e/perspective-grid-right-button.pw.e2e.js b/tests/e2e/perspective-grid-right-button.pw.e2e.js
index 1975d7b8b..558ea6da7 100644
--- a/tests/e2e/perspective-grid-right-button.pw.e2e.js
+++ b/tests/e2e/perspective-grid-right-button.pw.e2e.js
@@ -79,9 +79,8 @@ describe('TST50** - Right button on a file', () => {
const bodyTxt = await iframeBody.innerText();
const containTID = toContainTID(bodyTxt);
if (!containTID) {
- console.debug(bodyTxt);
+ console.debug('no containTID in:' + bodyTxt);
}
- //await global.client.switchToParentFrame();
expect(containTID).toBe(true);
});