-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e8a0fa
commit 8c8f7a4
Showing
13 changed files
with
201 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
apps/meteor/tests/e2e/page-objects/fragments/home-omnichannel-content.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type { Locator, Page } from '@playwright/test'; | ||
|
||
import { HomeContent } from './home-content'; | ||
import { OmnichannelCloseChatModal } from './omnichannel-close-chat-modal'; | ||
|
||
export class HomeOmnichannelContent extends HomeContent { | ||
readonly omnichannelCloseChatModal: OmnichannelCloseChatModal; | ||
|
||
constructor(page: Page) { | ||
super(page); | ||
this.omnichannelCloseChatModal = new OmnichannelCloseChatModal(page); | ||
} | ||
|
||
get inputMessage(): Locator { | ||
return this.page.locator('[name="msg"]'); | ||
} | ||
|
||
get btnForwardChat(): Locator { | ||
return this.page.locator('[data-qa-id="ToolBoxAction-balloon-arrow-top-right"]'); | ||
} | ||
|
||
get btnCloseChat(): Locator { | ||
return this.page.locator('[data-qa-id="ToolBoxAction-balloon-close-top-right"]'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
export * from './home-content'; | ||
export * from './home-omnichannel-content'; | ||
export * from './home-flextab'; | ||
export * from './home-sidenav'; | ||
export * from './omnichannel-sidenav'; | ||
export * from './omnichannel-close-chat-modal'; |
17 changes: 17 additions & 0 deletions
17
apps/meteor/tests/e2e/page-objects/fragments/omnichannel-close-chat-modal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { Locator, Page } from '@playwright/test'; | ||
|
||
export class OmnichannelCloseChatModal { | ||
private readonly page: Page; | ||
|
||
constructor(page: Page) { | ||
this.page = page; | ||
} | ||
|
||
get inputComment(): Locator { | ||
return this.page.locator('input[name="comment"]'); | ||
} | ||
|
||
get btnConfirm(): Locator { | ||
return this.page.locator('//button[contains(text(), "Confirm")]'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import type { Locator, Page } from '@playwright/test'; | ||
|
||
import { HomeOmnichannelContent, HomeSidenav, HomeFlextab } from './fragments'; | ||
|
||
export class HomeOmnichannel { | ||
private readonly page: Page; | ||
|
||
readonly content: HomeOmnichannelContent; | ||
|
||
readonly sidenav: HomeSidenav; | ||
|
||
readonly tabs: HomeFlextab; | ||
|
||
constructor(page: Page) { | ||
this.page = page; | ||
this.content = new HomeOmnichannelContent(page); | ||
this.sidenav = new HomeSidenav(page); | ||
this.tabs = new HomeFlextab(page); | ||
} | ||
|
||
get toastSuccess(): Locator { | ||
return this.page.locator('.rcx-toastbar.rcx-toastbar--success'); | ||
} | ||
|
||
get btnVerticalBarClose(): Locator { | ||
return this.page.locator('[data-qa="VerticalBarActionClose"]'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.