-
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' into fix/2750-simple-rag
- Loading branch information
Showing
45 changed files
with
887 additions
and
526 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.