DEV: Temporarily add back `redesigned_user_menu_enabled` for tests

This commit is contained in:
Keegan George 2023-05-09 11:42:37 -07:00
parent ef286b8d7f
commit 12003bfd2a
No known key found for this signature in database
GPG Key ID: 91B40E38537AC000
1 changed files with 9 additions and 2 deletions

View File

@ -201,7 +201,10 @@ const USER_MENU_ASSIGN_RESPONSE = {
acceptance(
"Discourse Assign | user menu | user cannot assign",
function (needs) {
needs.user({ can_assign: false });
needs.user({
redesigned_user_menu_enabled: true, // TODO(@keegan): Remove after site setting is removed in core
can_assign: false,
});
needs.settings({
assign_enabled: true,
});
@ -217,7 +220,10 @@ acceptance(
acceptance(
"Discourse Assign | user menu | assign_enabled setting is disabled",
function (needs) {
needs.user({ can_assign: true });
needs.user({
redesigned_user_menu_enabled: true, // TODO(@keegan): Remove after site setting is removed in core
can_assign: false,
});
needs.settings({
assign_enabled: false,
});
@ -232,6 +238,7 @@ acceptance(
acceptance("Discourse Assign | user menu", function (needs) {
needs.user({
redesigned_user_menu_enabled: true, // TODO(@keegan): Remove after site setting is removed in core
can_assign: true,
grouped_unread_notifications: {
34: 173, // assigned notification type