Skip to content

Commit

Permalink
chore: removing comments and ee skip
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva committed Dec 4, 2023
1 parent 7bebb36 commit 7c86da6
Showing 1 changed file with 2 additions and 41 deletions.
43 changes: 2 additions & 41 deletions apps/meteor/tests/e2e/omnichannel/omnichannel-monitor-role.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { faker } from '@faker-js/faker';
import { Page } from '@playwright/test';

// import { IS_EE } from '../config/constants';
import { IS_EE } from '../config/constants';
import { Users } from '../fixtures/userStates';
import { HomeOmnichannel } from '../page-objects';
import { createAgent, makeAgentAvailable } from '../utils/omnichannel/agents';
Expand All @@ -20,7 +20,7 @@ const ROOM_D = faker.person.fullName();
test.use({ storageState: Users.user3.state });

test.describe('OC - Monitor Role', () => {
// test(!IS_EE, 'Enterprise Edition Only');
test.skip(!IS_EE, 'Enterprise Edition Only');

let departments: Awaited<ReturnType<typeof createDepartment>>[];
let conversations: Awaited<ReturnType<typeof createConversation>>[];
Expand All @@ -29,45 +29,6 @@ test.describe('OC - Monitor Role', () => {
let unit: Awaited<ReturnType<typeof createOrUpdateUnit>>;
let poOmnichannel: HomeOmnichannel;

/* Verify that once the department is set with the unit,
* old/new chats should be displayed under current chats f
* and monitor should be allowed to interact with them using Join button.
*
* - Create department (2x)
*
* - Create an agent
* - Create a monitor
* - Create a unit
*
* - Create a conversation (no department)
* - Create a conversation (unit department)
* - Create a conversation (different department)
*
*
*/

/*
Verify that monitor has access to only those chats that are associated with the units
*/

/*
Verify if the user is removed from the monitor list, he does not have access to chats
of a unit he was part of. The system must update the list of a monitor in the unit too.
*/

/*
Verify if the department is removed from the unit,
the monitor should not have access to its chats(New/old both).
*/

/*
Verify if unit is deleted, monitor should not be able to see rooms.
*/

/*
Verify that a monitor is not allowed to create public Canned Responses.
*/

// Create agents
test.beforeAll(async ({ api }) => {
agents = await Promise.all([createAgent(api, 'user1'), createAgent(api, 'user2'), createAgent(api, MONITOR)]);
Expand Down

0 comments on commit 7c86da6

Please sign in to comment.