Testing based on user roles in a Sealious app

Writing one of the tasks I wanted to add tests that are checking if admin can access the side but I couldn’t figure out how to pass the suer session to the reques

		"doesn't crash",
		async function () {
			return withProdApp(async ({ base_url, rest_api }) => {
                                const [_, session] = await createAdminUser();
				await rest_api.get(HelloURL);

If I remember corectly we need to pass cookie from session to get request but I dont know if thats right and also what the name tf the coockie is

You can find an example on how to do that here: user-roles.test.ts · rPLAY :slight_smile: