TagSpaces is an offline, open source, document manager with tagging support
e2e fix sort by new samples
sytolk4990ad60deef
diff --git a/package.json b/package.jsonindex 0d1d43c74..d69ce2a14 100644--- a/package.json+++ b/package.json@@ -133,6 +133,7 @@"test-playwright": "npm run test-refresh-data && cross-env JEST_JUNIT_OUTPUT_DIR=./tests NODE_ENV=test jest --config=jest.config.playwright.js -t 'electron' --verbose ./tests/e2e/","test-playwright-web": "npm run test-refresh-data && npm run prepare-web-pro && cross-env NODE_ENV=test SHOW_CONSOLE=true DEBUG=pw:api PLAYWRIGHT=test_playwright jest --config=jest.config.web.js -t 'web' --verbose ./tests/e2e/","test-playwright-web-headless": "npm run test-refresh-data && npm run prepare-web-pro && cross-env NODE_ENV=test 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/",+ "test-clone-data": "rimraf tests/testdata && git clone https://github.com/tagspaces/testdata tests/testdata","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-unit": "cross-env NODE_JEST=unit_test BABEL_DISABLE_CACHE=1 jest --config=jest.config.unit.js --verbose ./tests/unit/","test-watch": "npm run test --watch",diff --git a/tests/e2e/perspective-grid.pw.e2e.js b/tests/e2e/perspective-grid.pw.e2e.jsindex af2d12ad5..c7c0d48e8 100644--- a/tests/e2e/perspective-grid.pw.e2e.js+++ b/tests/e2e/perspective-grid.pw.e2e.js@@ -87,7 +87,7 @@ describe('TST50 - Perspective Grid', () => {await clickOn('[data-tid=gridPerspectiveSortMenu]');await clickOn('[data-tid=gridPerspectiveSortByName]');firstFileName = await getGridFileName(0);- expect(firstFileName).toBe('sample.bmp');+ expect(firstFileName).toBe('sample.avif');});test('TST10xx - Sort by size [web,minio,electron]', async () => {@@ -99,7 +99,7 @@ describe('TST50 - Perspective Grid', () => {await clickOn('[data-tid=gridPerspectiveSortMenu]');await clickOn('[data-tid=gridPerspectiveSortBySize]');firstFileName = await getGridFileName(0);- expect(firstFileName).toBe('sample.glb');+ expect(firstFileName).toBe('sample.nef');});test('TST10xx - Sort by date [web,minio,electron]', async () => {@@ -126,7 +126,7 @@ describe('TST50 - Perspective Grid', () => {test('TST10xx - Sort by extension [web,minio,electron]', async () => {await clickOn('[data-tid=gridPerspectiveSortByExt]');let firstFileName = await getGridFileName(0);- expect(firstFileName).toBe('sample.bmp');+ expect(firstFileName).toBe('sample.avif');await clickOn('[data-tid=gridPerspectiveSortMenu]');await clickOn('[data-tid=gridPerspectiveSortByExt]');@@ -137,7 +137,7 @@ describe('TST50 - Perspective Grid', () => {test('TST10xx - Sort by tags [web,minio,electron]', async () => {await clickOn('[data-tid=gridPerspectiveSortByFirstTag]');let firstFileName = await getGridFileName(0);- expect(firstFileName).toBe('sample.bmp');+ expect(firstFileName).toBe('sample.avif');// ASCawait clickOn('[data-tid=gridPerspectiveSortMenu]');await clickOn('[data-tid=gridPerspectiveSortByFirstTag]');