Skip to content

Commit

Permalink
test: switch "yesterday" to "last 7 days"
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Dec 15, 2023
1 parent 97b4097 commit 380bf65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/e2e/cucumber/features/smoke/search.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/support/api/davSpaces/spaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down

0 comments on commit 380bf65

Please sign in to comment.