-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: add resources for admin notifications e2e test * fix: set created at on notification creation * feat: migrate admin notifications e2e test * fix: remove created at check for notifications * fix: remove extra comments * fix: remove explicit created at * fix: null check for created at * fix lint --------- Co-authored-by: Cedric Ong <[email protected]> Co-authored-by: Cedric Ong <[email protected]>
- Loading branch information
1 parent
cbcab99
commit 500e742
Showing
4 changed files
with
73 additions
and
34 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
26 changes: 26 additions & 0 deletions
26
src/e2e/resources/data/AdminNotificationsPageE2ETest_SqlEntities.json
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,26 @@ | ||
{ | ||
"notifications": { | ||
"notification1": { | ||
"id": "00000000-0000-4000-8000-000000001103", | ||
"startTime": "2011-01-01T00:00:00Z", | ||
"endTime": "2099-01-01T00:00:00Z", | ||
"createdAt": "2011-01-01T00:00:00Z", | ||
"style": "DANGER", | ||
"targetUser": "GENERAL", | ||
"title": "A deprecation note", | ||
"message": "<p>Deprecation happens in three minutes</p>", | ||
"shown": false | ||
}, | ||
"notification2": { | ||
"id": "00000000-0000-4000-8000-000000001103", | ||
"startTime": "2011-02-02T00:00:00Z", | ||
"endTime": "2099-02-02T00:00:00Z", | ||
"createdAt": "2011-01-01T00:00:00Z", | ||
"style": "SUCCESS", | ||
"targetUser": "STUDENT", | ||
"title": "A note for update", | ||
"message": "<p>Exciting features</p>", | ||
"shown": false | ||
} | ||
} | ||
} |
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