feat(tests): updated Created date filter test (#4868)

Signed-off-by: Alex Velichko <alex@hardcoreeng.com>
This commit is contained in:
Alex Velichko 2024-03-04 13:37:20 +03:00 committed by GitHub
parent 164a258f75
commit 189eb27763
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 () => {