Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Filter read/unread notifications on the server side (#10152)
- Loading branch information
1 parent
9515335
commit 04d7693
Showing
9 changed files
with
76 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { acceptance } from "helpers/qunit-helpers"; | ||
import selectKit from "helpers/select-kit-helper"; | ||
|
||
acceptance("NotificationsFilter", { | ||
loggedIn: true | ||
}); | ||
|
||
test("Notifications filter true", async assert => { | ||
await visit("/u/eviltrout/notifications"); | ||
|
||
assert.ok(find(".large-notification").length >= 0); | ||
}); | ||
|
||
test("Notifications filter read", async assert => { | ||
await visit("/u/eviltrout/notifications"); | ||
|
||
const dropdown = selectKit(".notifications-filter"); | ||
await dropdown.expand(); | ||
await dropdown.selectRowByValue("read"); | ||
|
||
assert.ok(find(".large-notification").length >= 0); | ||
}); | ||
|
||
test("Notifications filter unread", async assert => { | ||
await visit("/u/eviltrout/notifications"); | ||
|
||
const dropdown = selectKit(".notifications-filter"); | ||
await dropdown.expand(); | ||
await dropdown.selectRowByValue("unread"); | ||
|
||
assert.ok(find(".large-notification").length >= 0); | ||
}); |