mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-26 21:34:27 +00:00
feat(tests): updated Created date filter test (#4868)
Signed-off-by: Alex Velichko <alex@hardcoreeng.com>
This commit is contained in:
parent
164a258f75
commit
189eb27763
@ -155,7 +155,13 @@ test.describe('Tracker filters tests', () => {
|
||||
await issuesPage.checkFilter('Created date', 'This week')
|
||||
|
||||
await issuesPage.checkFilteredIssueExist(newIssue.title)
|
||||
await issuesPage.checkFilteredIssueExist(yesterdayIssueTitle)
|
||||
|
||||
// this week filter started on Monday, the yesterday created issue on Sunday
|
||||
if (new Date().getDay() !== 1) {
|
||||
await issuesPage.checkFilteredIssueExist(yesterdayIssueTitle)
|
||||
} else {
|
||||
await issuesPage.checkFilteredIssueNotExist(yesterdayIssueTitle)
|
||||
}
|
||||
})
|
||||
|
||||
await test.step('Check Filter This month', async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user