From 380bf65d5e162556a32ff49ad52918ebef6b794d Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Fri, 15 Dec 2023 15:59:24 +0100 Subject: [PATCH] test: switch "yesterday" to "last 7 days" --- tests/e2e/cucumber/features/smoke/search.feature | 8 ++++---- tests/e2e/support/api/davSpaces/spaces.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/e2e/cucumber/features/smoke/search.feature b/tests/e2e/cucumber/features/smoke/search.feature index 12a4e1dbb4f..88cbfd29b1e 100644 --- a/tests/e2e/cucumber/features/smoke/search.feature +++ b/tests/e2e/cucumber/features/smoke/search.feature @@ -237,13 +237,13 @@ Feature: Search | name | | mainFolder | And "Alice" creates the following files with mtime into personal space using API - | pathToFile | content | mtime | - | mainFolder/mediaTest.txt | yesterday's content | yesterday | - | mainFolder/mediaTest.md | I'm a Document | | + | pathToFile | content | mtime | + | mainFolder/mediaTest.txt | last 7 days content | last 7 days | + | mainFolder/mediaTest.md | I'm a Document | | And "Alice" opens the "files" app When "Alice" opens folder "mainFolder" And "Alice" searches "mediaTest" using the global search and the "in here" filter and presses enter - And "Alice" selects lastModified "yesterday" from the search result filter chip + And "Alice" selects lastModified "last 7 days" from the search result filter chip Then following resources should be displayed in the files list for user "Alice" | resource | | mainFolder/mediaTest.txt | diff --git a/tests/e2e/support/api/davSpaces/spaces.ts b/tests/e2e/support/api/davSpaces/spaces.ts index dbca1d11afc..e6049100530 100644 --- a/tests/e2e/support/api/davSpaces/spaces.ts +++ b/tests/e2e/support/api/davSpaces/spaces.ts @@ -70,7 +70,7 @@ const createFile = async ({ path: join('remote.php', 'dav', webDavEndPathToRoot, pathToFile), body: content, user: user, - header: mtime === 'yesterday' ? { 'X-OC-Mtime': today.getTime() / 1000 - 86400 } : {} + header: mtime === 'last 7 days' ? { 'X-OC-Mtime': today.getTime() / 1000 - 86400 } : {} }) checkResponseStatus(response, `Failed while uploading file '${pathToFile}' in personal space`)