chore: improve omnichannel tests reliability (#29572)
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>pull/29406/head^2
parent
28d207f0bb
commit
e22dfc15ef
@ -1,6 +1,6 @@ |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelAgents } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelAgents } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.use({ storageState: Users.admin.state }); |
||||
|
||||
@ -1,11 +1,11 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { IS_EE } from './config/constants'; |
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { IS_EE } from '../config/constants'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.describe('omnichannel-auto-onhold-chat-closing', () => { |
||||
test.skip(!IS_EE, 'Enterprise Only'); |
||||
@ -1,11 +1,11 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { IS_EE } from './config/constants'; |
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { IS_EE } from '../config/constants'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.describe('omnichannel-auto-transfer-unanswered-chat', () => { |
||||
test.skip(!IS_EE, 'Enterprise Only'); |
||||
@ -1,11 +1,11 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { IS_EE } from './config/constants'; |
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from './page-objects'; |
||||
import { test } from './utils/test'; |
||||
import { IS_EE } from '../config/constants'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from '../page-objects'; |
||||
import { test } from '../utils/test'; |
||||
|
||||
test.describe('Omnichannel Canned Responses Sidebar', () => { |
||||
test.skip(!IS_EE, 'Enterprise Only'); |
||||
@ -1,13 +1,13 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { ADMIN_CREDENTIALS, IS_EE } from './config/constants'; |
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from './page-objects'; |
||||
import { getPriorityByi18nLabel } from './utils/omnichannel/priority'; |
||||
import { createSLA } from './utils/omnichannel/sla'; |
||||
import { test, expect } from './utils/test'; |
||||
import { ADMIN_CREDENTIALS, IS_EE } from '../config/constants'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from '../page-objects'; |
||||
import { getPriorityByi18nLabel } from '../utils/omnichannel/priority'; |
||||
import { createSLA } from '../utils/omnichannel/sla'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
const getRoomId = (page: Page): string => { |
||||
// url is of the form: http://localhost:3000/live/:rid/room-info
|
||||
@ -1,10 +1,10 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeOmnichannel } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeOmnichannel } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.describe('Omnichannel chat histr', () => { |
||||
let poLiveChat: OmnichannelLiveChat; |
||||
@ -1,10 +1,10 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeOmnichannel } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeOmnichannel } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.describe('Omnichannel close chat', () => { |
||||
let poLiveChat: OmnichannelLiveChat; |
||||
@ -1,10 +1,10 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeOmnichannel } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeOmnichannel } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.describe('Omnichannel close inquiry', () => { |
||||
let poLiveChat: OmnichannelLiveChat; |
||||
@ -1,10 +1,10 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from './page-objects'; |
||||
import { test } from './utils/test'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from '../page-objects'; |
||||
import { test } from '../utils/test'; |
||||
|
||||
test.describe('Omnichannel contact info', () => { |
||||
let poLiveChat: OmnichannelLiveChat; |
||||
@ -1,7 +1,7 @@ |
||||
import { test, expect } from '@playwright/test'; |
||||
|
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelCurrentChats } from './page-objects'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelCurrentChats } from '../page-objects'; |
||||
|
||||
test.use({ storageState: Users.admin.state }); |
||||
|
||||
@ -1,6 +1,6 @@ |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelCustomFields } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelCustomFields } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.use({ storageState: Users.admin.state }); |
||||
|
||||
@ -1,10 +1,10 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { IS_EE } from './config/constants'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelDepartments } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { IS_EE } from '../config/constants'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelDepartments } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.use({ storageState: Users.admin.state }); |
||||
|
||||
@ -1,10 +1,10 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { IS_EE } from './config/constants'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelDepartments } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { IS_EE } from '../config/constants'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelDepartments } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
const ERROR = { |
||||
requiredName: 'The field name is required.', |
||||
@ -1,10 +1,10 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { HomeOmnichannel, OmnichannelLiveChat } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { HomeOmnichannel, OmnichannelLiveChat } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
const newUser = { |
||||
name: `${faker.person.firstName()} ${faker.string.uuid()}}`, |
||||
@ -1,6 +1,6 @@ |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelManager } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelManager } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.use({ storageState: Users.admin.state }); |
||||
|
||||
@ -1,9 +1,9 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
|
||||
import { IS_EE } from './config/constants'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelPriorities } from './page-objects/omnichannel-priorities'; |
||||
import { test, expect } from './utils/test'; |
||||
import { IS_EE } from '../config/constants'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelPriorities } from '../page-objects/omnichannel-priorities'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
const PRIORITY_NAME = faker.person.firstName(); |
||||
|
||||
@ -1,11 +1,11 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { IS_EE } from './config/constants'; |
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { IS_EE } from '../config/constants'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.describe('omnichannel-transcript', () => { |
||||
let poLiveChat: OmnichannelLiveChat; |
||||
@ -1,10 +1,10 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeChannel } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.describe('omnichannel-takeChat', () => { |
||||
let poLiveChat: OmnichannelLiveChat; |
||||
@ -1,10 +1,10 @@ |
||||
import { faker } from '@faker-js/faker'; |
||||
import type { Page } from '@playwright/test'; |
||||
|
||||
import { createAuxContext } from './fixtures/createAuxContext'; |
||||
import { Users } from './fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeOmnichannel } from './page-objects'; |
||||
import { test, expect } from './utils/test'; |
||||
import { createAuxContext } from '../fixtures/createAuxContext'; |
||||
import { Users } from '../fixtures/userStates'; |
||||
import { OmnichannelLiveChat, HomeOmnichannel } from '../page-objects'; |
||||
import { test, expect } from '../utils/test'; |
||||
|
||||
test.describe.serial('omnichannel-triggers', () => { |
||||
let triggersName: string; |
||||
Loading…
Reference in new issue