CFE-10 testing disabled button

This commit is contained in:
2023-11-04 11:25:18 +03:30
parent 6c571f6790
commit 18375f1c5c
3 changed files with 24 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import {rest} from "msw";
import {GET_ROLE_LIST, GET_ROLES} from "@/core/data/apiRoutes";
import {GET_PERMISSIONS_LIST, GET_ROLE_LIST, GET_ROLES} from "@/core/data/apiRoutes";
export const rolesHandler = [
rest.get(GET_ROLES, (req, res, ctx) => {
@@ -51,7 +51,7 @@ export const rolesHandler = [
),
);
}),
rest.get(GET_ROLE_LIST, (req, res, ctx) => {
rest.get(GET_PERMISSIONS_LIST, (req, res, ctx) => {
return res(ctx.json({
data: [
{