Skip to content
Snippets Groups Projects
Commit 14b733fa authored by MartinSchoeler's avatar MartinSchoeler
Browse files

fix reviews

parent 911c1fd8
No related branches found
No related tags found
No related merge requests found
......@@ -77,12 +77,12 @@ test.describe('Omnichannel chat history', () => {
await api.post('/permissions.update', { permissions: [{ _id: 'preview-c-room', roles: [] }] });
await test.step('Expect to not be able to see conversation history', async () => {
await test.step('Expect agent to see conversation history, but not join room', async () => {
await agent.page.reload();
await agent.poHomeOmnichannel.contacts.contactInfo.historyItem.click();
await agent.poHomeOmnichannel.contacts.contactInfo.historyMessage.click();
await agent.poHomeOmnichannel.contacts.contactInfo.openChatBtn.click();
await agent.poHomeOmnichannel.contacts.contactInfo.btnOpenChat.click();
// Should not show the NoSubscribedRoom.tsx component on livechat rooms
await expect(agent.page.locator('div >> text=This conversation is already closed.')).toBeVisible();
......
......@@ -27,7 +27,7 @@ export class OmnichannelContactInfo extends OmnichannelManageContact {
return this.dialogContactInfo.getByRole('listitem').first();
}
get openChatBtn(): Locator {
get btnOpenChat(): Locator {
return this.dialogContactInfo.getByRole('button', { name: 'Open chat' });
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment