-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
…to development
- Loading branch information
Showing
129 changed files
with
4,369 additions
and
1,496 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
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
11 changes: 11 additions & 0 deletions
11
apps/chat-e2e/src/assertions/messageTemplateModalAssertion.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,11 @@ | ||
import { BaseAssertion } from '@/src/assertions/baseAssertion'; | ||
import { MessageTemplateModal } from '@/src/ui/webElements'; | ||
|
||
export class MessageTemplateModalAssertion extends BaseAssertion { | ||
readonly messageTemplateModal: MessageTemplateModal; | ||
|
||
constructor(messageTemplateModal: MessageTemplateModal) { | ||
super(); | ||
this.messageTemplateModal = messageTemplateModal; | ||
} | ||
} |
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,47 @@ | ||
import { FolderAssertion } from '@/src/assertions/folderAssertion'; | ||
import { PublishingExpectedMessages, TreeEntity } from '@/src/testData'; | ||
import { PublishFolder } from '@/src/ui/webElements/entityTree'; | ||
|
||
export class PublishFolderAssertion< | ||
T extends PublishFolder, | ||
> extends FolderAssertion<PublishFolder> { | ||
readonly publishFolder: T; | ||
|
||
constructor(publishFolder: T) { | ||
super(publishFolder); | ||
this.publishFolder = publishFolder; | ||
} | ||
|
||
public async assertFolderEntityVersion( | ||
folder: TreeEntity, | ||
folderEntity: TreeEntity, | ||
expectedVersion: string, | ||
) { | ||
await this.assertElementText( | ||
this.publishFolder.getFolderEntityVersion( | ||
folder.name, | ||
folderEntity.name, | ||
folder.index, | ||
folderEntity.index, | ||
), | ||
expectedVersion, | ||
PublishingExpectedMessages.entityVersionIsValid, | ||
); | ||
} | ||
|
||
public async assertFolderEntityVersionColor( | ||
folder: TreeEntity, | ||
folderEntity: TreeEntity, | ||
expectedColor: string, | ||
) { | ||
await this.assertElementColor( | ||
this.publishFolder.getFolderEntityVersionElement( | ||
folder.name, | ||
folderEntity.name, | ||
folder.index, | ||
folderEntity.index, | ||
), | ||
expectedColor, | ||
); | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
apps/chat-e2e/src/assertions/renameConversationModalAssertion.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,56 @@ | ||
import { BaseAssertion } from '@/src/assertions/baseAssertion'; | ||
import { RenameConversationModal } from '@/src/ui/webElements/renameConversationModal'; | ||
import { expect } from '@playwright/test'; | ||
|
||
export class RenameConversationModalAssertion extends BaseAssertion { | ||
readonly renameModal: RenameConversationModal; | ||
|
||
constructor(renameModal: RenameConversationModal) { | ||
super(); | ||
this.renameModal = renameModal; | ||
} | ||
|
||
async assertModalIsVisible() { | ||
await this.assertElementState( | ||
this.renameModal.getElementLocator(), | ||
'visible', | ||
'Rename Conversation Modal should be visible', | ||
); | ||
} | ||
|
||
async assertModalTitle(expectedTitle: string) { | ||
await expect | ||
.soft( | ||
this.renameModal.title.getElementLocator(), | ||
'Rename Conversation Modal title should match', | ||
) | ||
.toHaveText(expectedTitle); | ||
} | ||
|
||
async assertInputValue(expectedValue: string) { | ||
await expect | ||
.soft( | ||
this.renameModal.nameInput.getElementLocator(), | ||
'Rename Conversation Modal input value should match', | ||
) | ||
.toHaveText(expectedValue); | ||
} | ||
|
||
async assertSaveButtonIsEnabled() { | ||
await expect | ||
.soft( | ||
this.renameModal.saveButton.getElementLocator(), | ||
'Save button should be enabled', | ||
) | ||
.toBeEnabled(); | ||
} | ||
|
||
async assertSaveButtonIsDisabled() { | ||
await expect | ||
.soft( | ||
this.renameModal.saveButton.getElementLocator(), | ||
'Save button should be disabled', | ||
) | ||
.toBeDisabled(); | ||
} | ||
} |
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.