Skip to content

Commit

Permalink
feat(tests): updated Created date filter test (hcengineering#4868)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Velichko <alex@hardcoreeng.com>
Signed-off-by: Tiago Cruz <tcruz@netic.io>
  • Loading branch information
nestoragent authored and tjaoc committed Mar 5, 2024
1 parent 37898ca commit 788c7c8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/sanity/tests/tracker/filter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 788c7c8

Please sign in to comment.