Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(chat): redesign of empty conversation settings (Issue #2045, #2697, #1691) #2657

Merged
merged 125 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from 123 commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
ff17323
refactoring
IlyaBondar Nov 8, 2024
fd668b8
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 11, 2024
f2997e2
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 11, 2024
c2fc367
refactoring
IlyaBondar Nov 13, 2024
8b80e9e
use local bucket and check it
IlyaBondar Nov 13, 2024
7f01d5c
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 13, 2024
609f9e5
refactoring
IlyaBondar Nov 13, 2024
897c0a4
Merge branch 'fix/2566-create-new' of https://github.com/epam/ai-dial…
IlyaBondar Nov 13, 2024
0f6716c
use local bucket
IlyaBondar Nov 13, 2024
2e81b2a
displaying local conversation
IlyaBondar Nov 13, 2024
99e532b
fix uploading selected
IlyaBondar Nov 13, 2024
293adf6
drag&drop and send message
IlyaBondar Nov 14, 2024
467205b
fix postfix logic
IlyaBondar Nov 14, 2024
3ac550b
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 15, 2024
5d02f0a
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 15, 2024
dc413d4
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 15, 2024
ae8e4aa
remove unused argument
IlyaBondar Nov 15, 2024
b6f29aa
Merge branch 'fix/2566-create-new' of https://github.com/epam/ai-dial…
IlyaBondar Nov 15, 2024
8a82ad7
Update conversation.ts
IlyaBondar Nov 15, 2024
436c605
simplify
IlyaBondar Nov 15, 2024
6c6094a
fix deleting
IlyaBondar Nov 15, 2024
cebf3aa
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 15, 2024
d9c759e
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 19, 2024
40943b8
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 20, 2024
ceea4db
fix(chat): fix lastActivityDate sorting for public items (Issue #2056)
Alexander-Kezik Nov 20, 2024
565b460
last conversation settings in LocalStorage
IlyaBondar Nov 20, 2024
b2469bb
Merge branch 'development' into fix/public-conversation-selection
IlyaBondar Nov 20, 2024
9c976d8
fix(chat): if Playback or Replay conversation selected (Issue #2618)
IlyaBondar Nov 20, 2024
c0a694a
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 20, 2024
f7bd518
Merge remote-tracking branch 'origin/fix/public-conversation-selectio…
IlyaBondar Nov 20, 2024
6448a8b
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 20, 2024
203fd09
revert saveNewConversationEpic
IlyaBondar Nov 21, 2024
1dbd1f0
fix/2566-create-new: fixed e2e tests
irinakartun Nov 21, 2024
6a406a6
format:fix
IlyaBondar Nov 21, 2024
bd6e3df
code review comment resolving
IlyaBondar Nov 21, 2024
17c0c99
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 21, 2024
ac48d65
fix/2566-create-new: fixed e2e
irinakartun Nov 21, 2024
b50ee20
Merge remote-tracking branch 'origin/fix/2566-create-new' into fix/25…
irinakartun Nov 21, 2024
88f9c74
code review
IlyaBondar Nov 21, 2024
19b1c61
Merge branch 'fix/2566-create-new' of https://github.com/epam/ai-dial…
IlyaBondar Nov 21, 2024
4b590bd
fix/2566-create-new: fixed selectEntity method for e2e
irinakartun Nov 21, 2024
739b5d6
fix/2566-create-new: reverted test focus
irinakartun Nov 21, 2024
aee01b8
revert strange code
IlyaBondar Nov 21, 2024
7433ac1
fix Use model
IlyaBondar Nov 21, 2024
b71f592
Merge branch 'development' into fix/2566-create-new
IlyaBondar Nov 21, 2024
5a2f916
fix drag & drop
IlyaBondar Nov 21, 2024
b60bc49
remove unused code
IlyaBondar Nov 21, 2024
3daa5a5
clean up: useless code
IlyaBondar Nov 21, 2024
cbfb5fd
fix/2566-create-new: fixed e2e
irinakartun Nov 22, 2024
6684629
hide export all and delete all if only empty conversations
IlyaBondar Nov 22, 2024
2d85594
fix selection after delete all
IlyaBondar Nov 22, 2024
198b9cd
add TODO
IlyaBondar Nov 22, 2024
2a46670
fix/2566-create-new: added share users cleanup before tests
irinakartun Nov 22, 2024
50ff2bb
Merge remote-tracking branch 'origin/fix/2566-create-new' into fix/25…
irinakartun Nov 22, 2024
1395d5d
Merge branch 'development' into fix/2566-create-new
irinakartun Nov 22, 2024
a67bc18
Merge branch 'development' into fix/2566-create-new
irinakartun Nov 22, 2024
7600687
fix/2566-create-new: fixed e2e
irinakartun Nov 22, 2024
5553705
fix(chat): hide empty conversations and create new after delete selec…
IlyaBondar Nov 22, 2024
28c3abb
reset settings
IlyaBondar Nov 22, 2024
2c2b46c
add concurrency
IlyaBondar Nov 22, 2024
da8ce24
try concurrency check
IlyaBondar Nov 22, 2024
4c6bb7a
try concurrency check
IlyaBondar Nov 22, 2024
3af2d1c
try concurrency check
IlyaBondar Nov 22, 2024
83201e8
revert pr.yml
IlyaBondar Nov 22, 2024
2cc4e34
empty view
IlyaBondar Nov 22, 2024
035b3d2
fix footer position
IlyaBondar Nov 22, 2024
5abcaae
Merge branch 'development' into fix/2651-hide-empty-conversation
IlyaBondar Nov 22, 2024
dd17aae
Merge branch 'development' into fix/2651-hide-empty-conversation-base
IlyaBondar Nov 22, 2024
3396b89
Merge branch 'fix/2651-hide-empty-conversation-base' into fix/2651-hi…
IlyaBondar Nov 22, 2024
9f758d1
fix postfix for compare mode
IlyaBondar Nov 25, 2024
b1847db
Merge branch 'fix/2651-hide-empty-conversation-base' into fix/2651-hi…
IlyaBondar Nov 25, 2024
6d9e81f
fix/2651-hide-empty-conversation-base: fixed tests
irinakartun Nov 25, 2024
516376c
fix/2651-hide-empty-conversation-base: removed TODO
irinakartun Nov 25, 2024
58168aa
open settings
IlyaBondar Nov 25, 2024
71ef3d6
fix/2651-hide-empty-conversation-base: debug changes to revert
irinakartun Nov 25, 2024
39262be
Revert "fix/2651-hide-empty-conversation-base: debug changes to revert"
irinakartun Nov 25, 2024
f76b704
empty chat description
IlyaBondar Nov 25, 2024
316cf41
hide new empty conversations
IlyaBondar Nov 25, 2024
073c2ae
Merge branch 'fix/2651-hide-empty-conversation-base' into fix/2651-hi…
IlyaBondar Nov 25, 2024
9348633
filter local conversations
IlyaBondar Nov 25, 2024
7d90b35
removed reloading models and addons each time
IlyaBondar Nov 25, 2024
0135454
Merge branch 'fix/2651-hide-empty-conversation-base' into fix/2651-hi…
IlyaBondar Nov 25, 2024
135c6bd
fix/2651-hide-empty-conversation-base: fixed e2e
irinakartun Nov 26, 2024
61b43c0
fix clear all
IlyaBondar Nov 26, 2024
50470d3
fix/2651-hide-empty-conversation-base: fixed e2e
irinakartun Nov 26, 2024
2d10d8d
Merge branch 'development' into fix/2651-hide-empty-conversation-base
irinakartun Nov 26, 2024
656f2ae
Merge branch 'development' into fix/2651-hide-empty-conversation-base
IlyaBondar Nov 26, 2024
a91f031
fix/2651-hide-empty-conversation-base: fixed e2e
irinakartun Nov 26, 2024
18efc2f
Merge branch 'development' into fix/2651-hide-empty-conversation-base
irinakartun Nov 26, 2024
0456a0d
fix/2651-hide-empty-conversation-base: fixed e2e
irinakartun Nov 26, 2024
ae3071b
revert lastConversationSettings logic
IlyaBondar Nov 26, 2024
e4a79c3
Update conversations.selectors.ts
IlyaBondar Nov 26, 2024
b330b8a
Merge branch 'development' of github.com:epam/ai-dial-chat into fix/2…
irinakartun Nov 26, 2024
800bd68
fix/2651-hide-empty-conversation-base: fixed e2e
irinakartun Nov 26, 2024
3d4dae0
Merge remote-tracking branch 'origin/fix/2651-hide-empty-conversation…
irinakartun Nov 26, 2024
7655eb2
Merge branch 'fix/2651-hide-empty-conversation-base' into fix/2651-hi…
IlyaBondar Nov 26, 2024
83715cf
Merge branch 'development' into fix/2651-hide-empty-conversation
IlyaBondar Nov 26, 2024
2d2cee8
revert useless changes
IlyaBondar Nov 26, 2024
83e466a
Merge branch 'development' into fix/2651-hide-empty-conversation
IlyaBondar Nov 26, 2024
cf78c07
Merge branch 'development' into fix/2651-hide-empty-conversation
irinakartun Nov 27, 2024
59667bd
fix/2651-hide-empty-conversation: fixed e2e tests
irinakartun Nov 27, 2024
203b881
Merge branch 'development' into fix/2651-hide-empty-conversation
irinakartun Nov 27, 2024
a575585
fix/2651-hide-empty-conversation: fixed e2e tests
irinakartun Nov 28, 2024
cc81464
Merge remote-tracking branch 'origin/fix/2651-hide-empty-conversation…
irinakartun Nov 28, 2024
5a65902
fix/2651-hide-empty-conversation: to revert
irinakartun Nov 28, 2024
304562c
Merge branch 'development' into fix/2651-hide-empty-conversation
IlyaBondar Nov 28, 2024
8261d1c
Merge branch 'development' into fix/2651-hide-empty-conversation
IlyaBondar Nov 28, 2024
da51bd6
fix issue #1691
IlyaBondar Nov 28, 2024
b9520f0
Merge branch 'fix/2651-hide-empty-conversation' of https://github.com…
IlyaBondar Nov 28, 2024
c4b378f
fix/2651-hide-empty-conversation: fixed e2e
irinakartun Nov 28, 2024
dab562b
Merge remote-tracking branch 'origin/fix/2651-hide-empty-conversation…
irinakartun Nov 28, 2024
1f6346f
fix/2651-hide-empty-conversation: to revert
irinakartun Nov 28, 2024
8d9d994
fix/2651-hide-empty-conversation: fixed test
irinakartun Nov 28, 2024
aeb1601
fix/2651-hide-empty-conversation: added issue link
irinakartun Nov 28, 2024
3389f27
fix/2651-hide-empty-conversation: reverted debug changes
irinakartun Nov 28, 2024
6e666d7
fix/2651-hide-empty-conversation: removed not used method
irinakartun Nov 28, 2024
67bfdd0
add version selector
IlyaBondar Nov 28, 2024
edf2b6e
Merge branch 'development' into fix/2651-hide-empty-conversation
irinakartun Nov 28, 2024
3ede925
version prefix
IlyaBondar Nov 28, 2024
dd10164
version prefix
IlyaBondar Nov 28, 2024
2b8cd58
incorrect model
IlyaBondar Nov 28, 2024
ad8ddec
model -> agent
IlyaBondar Nov 28, 2024
7652c2f
format fix
IlyaBondar Nov 28, 2024
497e397
fix/2651-hide-empty-conversation: fixed overlay tests
irinakartun Nov 28, 2024
9467b4f
Merge remote-tracking branch 'origin/fix/2651-hide-empty-conversation…
irinakartun Nov 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ This repository is managed as monorepo by [NX](https://nx.dev/) tools.

## Docs

* `DIAL Chat` documentation placed [here](./apps/chat/README.md).
* `DIAL Chat Theming` documentation is placed [here](./docs/THEME-CUSTOMIZATION.md).
* `DIAL Overlay` documentation is placed [here](./libs/overlay/README.md).
* `DIAL Chat Visualizer Connector` documentation is placed [here](./libs/chat-visualizer-connector/README.md).
* `DIAL Visualizer Connector` documentation is placed [here](./libs/visualizer-connector/README.md).
- `DIAL Chat` documentation placed [here](./apps/chat/README.md).
- `DIAL Chat Theming` documentation is placed [here](./docs/THEME-CUSTOMIZATION.md).
- `DIAL Overlay` documentation is placed [here](./libs/overlay/README.md).
- `DIAL Chat Visualizer Connector` documentation is placed [here](./libs/chat-visualizer-connector/README.md).
- `DIAL Visualizer Connector` documentation is placed [here](./libs/visualizer-connector/README.md).

> In [AI DIAL repository](https://github.com/epam/ai-dial/blob/main/docs/user-guide.md), you can find a user guide for the AI DIAL Chat application.
> In [AI DIAL repository](https://github.com/epam/ai-dial/blob/main/docs/user-guide.md), you can find a user guide for the AI DIAL Chat application.

## Development

Expand Down
18 changes: 18 additions & 0 deletions apps/chat-e2e/src/assertions/agentInfoAssertion.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { BaseAssertion } from '@/src/assertions/baseAssertion';
import { AgentInfo } from '@/src/ui/webElements';

export class AgentInfoAssertion extends BaseAssertion {
readonly agentInfo: AgentInfo;

constructor(agentInfo: AgentInfo) {
super();
this.agentInfo = agentInfo;
}

public async assertModelIcon(expectedIcon: string) {
await super.assertEntityIcon(
await this.agentInfo.getAgentIcon(),
expectedIcon,
);
}
}
2 changes: 1 addition & 1 deletion apps/chat-e2e/src/assertions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export * from './manageAttachmentsAssertion';
export * from './selectFolderModalAssertion';
export * from './baseAssertion';
export * from './conversationInfoTooltipAssertion';
export * from './isolatedViewAssertion';
export * from './agentInfoAssertion';
export * from './addonsDialogAssertion';
export * from './marketplaceApplicationsAssertion';
export * from './conversationToCompareAssertion';
18 changes: 0 additions & 18 deletions apps/chat-e2e/src/assertions/isolatedViewAssertion.ts

This file was deleted.

25 changes: 10 additions & 15 deletions apps/chat-e2e/src/core/dialFixtures.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import config from '../../config/chat.playwright.config';
import { DialHomePage, MarketplacePage } from '../ui/pages';
import {
AgentInfo,
AttachFilesModal,
Chat,
ChatBar,
Expand All @@ -10,14 +11,14 @@ import {
ConversationSettings,
ConversationToCompare,
EntitySelector,
MoreInfo,
PromptBar,
SelectFolderModal,
SendMessage,
} from '../ui/webElements';

import {
AccountSettingsAssertion,
AgentInfoAssertion,
ApiAssertion,
ChatAssertion,
ChatHeaderAssertion,
Expand All @@ -31,7 +32,6 @@ import {
ErrorToastAssertion,
FolderAssertion,
FooterAssertion,
IsolatedViewAssertion,
MarketplaceApplicationsAssertion,
MenuAssertion,
PlaybackAssertion,
Expand Down Expand Up @@ -169,7 +169,7 @@ const dialTest = test.extend<
temperatureSlider: TemperatureSlider;
addons: Addons;
addonsDialog: AddonsDialog;
isolatedView: MoreInfo;
agentInfo: AgentInfo;
conversationData: ConversationData;
promptData: PromptData;
conversationDropdownMenu: DropdownMenu;
Expand All @@ -179,7 +179,6 @@ const dialTest = test.extend<
promptModalDialog: PromptModalDialog;
variableModalDialog: VariableModalDialog;
chatHeader: ChatHeader;
moreInfo: MoreInfo;
chatInfoTooltip: ChatInfoTooltip;
compare: Compare;
compareConversation: ConversationToCompare;
Expand Down Expand Up @@ -267,7 +266,7 @@ const dialTest = test.extend<
selectFoldersAssertion: FolderAssertion<Folders>;
selectFolderModalAssertion: SelectFolderModalAssertion;
conversationInfoTooltipAssertion: ConversationInfoTooltipAssertion;
isolatedViewAssertion: IsolatedViewAssertion;
agentInfoAssertion: AgentInfoAssertion;
addonsDialogAssertion: AddonsDialogAssertion;
marketplaceApplicationsAssertion: MarketplaceApplicationsAssertion;
conversationToCompareAssertion: ConversationToCompareAssertion;
Expand Down Expand Up @@ -474,9 +473,9 @@ const dialTest = test.extend<
const addonsDialog = addons.getAddonsDialog();
await use(addonsDialog);
},
isolatedView: async ({ chat }, use) => {
const isolatedView = chat.getIsolatedView();
await use(isolatedView);
agentInfo: async ({ chat }, use) => {
const agentInfo = chat.getAgentInfo();
await use(agentInfo);
},
modelSelector: async ({ entitySettings }, use) => {
const modelSelector = entitySettings.getModelSelector();
Expand Down Expand Up @@ -506,10 +505,6 @@ const dialTest = test.extend<
const variableModalDialog = new VariableModalDialog(page);
await use(variableModalDialog);
},
moreInfo: async ({ entitySettings }, use) => {
const moreInfo = entitySettings.getMoreInfo();
await use(moreInfo);
},
chatHeader: async ({ chat }, use) => {
const chatHeader = chat.getChatHeader();
await use(chatHeader);
Expand Down Expand Up @@ -919,9 +914,9 @@ const dialTest = test.extend<
new ConversationInfoTooltipAssertion(chatInfoTooltip);
await use(conversationInfoTooltipAssertion);
},
isolatedViewAssertion: async ({ isolatedView }, use) => {
const isolatedViewAssertion = new IsolatedViewAssertion(isolatedView);
await use(isolatedViewAssertion);
agentInfoAssertion: async ({ agentInfo }, use) => {
const agentInfoAssertion = new AgentInfoAssertion(agentInfo);
await use(agentInfoAssertion);
},
addonsDialogAssertion: async ({ addonsDialog }, use) => {
const addonsDialogAssertion = new AddonsDialogAssertion(addonsDialog);
Expand Down
2 changes: 1 addition & 1 deletion apps/chat-e2e/src/testData/expectedConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const ExpectedConstants = {
backgroundAccentAttribute: 'bg-accent-primary-alpha',
noResults: 'No results found',
notAllowedModelError:
'Not available model selected. Please, change the model to proceed',
'Not available agent selected. Please, change the agent to proceed',
replayAsIsDescr:
'This mode replicates user requests from the original conversation including settings set in each message.',
replayOldVersionWarning:
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-e2e/src/tests/abortedReplay.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ dialTest(
await dialTest.step(
'Apply model change and verify model icon is updated in the header, Replay icon stays on chat bar',
async () => {
await chat.applyNewEntity();
await chat.applyNewAgent();
await chatHeaderAssertion.assertHeaderIcon(expectedNewModelIcon);
await conversationAssertion.assertReplayIconState(
{
Expand Down Expand Up @@ -362,7 +362,7 @@ dialTest(
await dialTest.step(
'Continue generation with "Replay as is" option and verify model icons are updated on chat bar',
async () => {
await chat.applyNewEntity();
await chat.applyNewAgent();
await dialHomePage.mockChatTextResponse(
MockedChatApiResponseBodies.simpleTextBody,
);
Expand Down
11 changes: 6 additions & 5 deletions apps/chat-e2e/src/tests/chatBarConversation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -860,9 +860,8 @@ dialTest(
folderPrompts,
prompts,
promptBar,
talkToSelector,
entitySettings,
baseAssertion,
agentInfoAssertion,
agentInfo,
setTestIds,
}) => {
setTestIds('EPMRTC-611');
Expand Down Expand Up @@ -968,8 +967,10 @@ dialTest(
.isVisible();

if (!isOrganisationVisible && !isSharedWithMeVisible) {
await baseAssertion.assertElementState(talkToSelector, 'visible');
await baseAssertion.assertElementState(entitySettings, 'visible');
await agentInfoAssertion.assertElementState(
agentInfo.getElementLocator(),
'visible',
);
}

if (i === 1) {
Expand Down
4 changes: 2 additions & 2 deletions apps/chat-e2e/src/tests/chatExportImport.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ dialTest(
conversationAssertion,
chat,
iconApiHelper,
conversationSettings,
agentInfo,
}) => {
dialTest.skip(
[
Expand Down Expand Up @@ -601,7 +601,7 @@ dialTest(
await conversations.selectConversation(
ExpectedConstants.newConversationTitle,
);
await conversationSettings.waitForState();
await agentInfo.waitForState();
await chat.sendRequestWithButton('1+1=', false);
const todayConversations = await conversations.getTodayConversations();
expect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ dialTest(
simpleRequestModel,
marketplacePage,
);
await chat.applyNewEntity();
await chat.applyNewAgent();
await chat.sendRequestWithButton('1+2=');
const messagesCount =
await chatMessages.chatMessages.getElementsCount();
Expand All @@ -370,7 +370,8 @@ dialTest(
conversationDropdownMenu,
chatBar,
confirmationDialog,
recentEntitiesAssertion,
agentInfo,
agentInfoAssertion,
chatMessages,
chat,
playbackAssertion,
Expand Down Expand Up @@ -455,7 +456,7 @@ dialTest(
{ name: playbackConversation.name },
'visible',
);
await recentEntitiesAssertion.assertPlaybackIconState('visible');
await agentInfoAssertion.assertElementState(agentInfo, 'visible');
},
);

Expand Down
11 changes: 3 additions & 8 deletions apps/chat-e2e/src/tests/chatHeader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ dialTest(
conversationData,
dataInjector,
chatHeader,
conversationSettings,
confirmationDialog,
agentInfoAssertion,
agentInfo,
conversations,
}) => {
setTestIds('EPMRTC-490', 'EPMRTC-491');
Expand Down Expand Up @@ -209,13 +210,7 @@ dialTest(
async () => {
await chatHeader.clearConversation.click();
await confirmationDialog.confirm({ triggeredHttpMethod: 'PUT' });

await expect
.soft(
conversationSettings.getElementLocator(),
ExpectedMessages.conversationSettingsVisible,
)
.toBeVisible();
await agentInfoAssertion.assertElementState(agentInfo, 'visible');
},
);
},
Expand Down
2 changes: 1 addition & 1 deletion apps/chat-e2e/src/tests/compareMode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ dialTest(
await rightEntitySettings
.getTemperatureSlider()
.setTemperature(secondUpdatedTemp);
await chat.applyNewEntity();
await chat.applyNewAgent();
},
);

Expand Down
30 changes: 0 additions & 30 deletions apps/chat-e2e/src/tests/conversationWithAttachment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ dialTest(
'Send button is available if to send an attachment without a text',
async ({
dialHomePage,
talkToSelector,
marketplacePage,
setTestIds,
attachFilesModal,
sendMessage,
Expand Down Expand Up @@ -69,10 +67,6 @@ dialTest(
async () => {
await dialHomePage.openHomePage();
await dialHomePage.waitForPageLoaded();
await talkToSelector.selectEntity(
randomModelWithAttachment,
marketplacePage,
);
await expect
.soft(
sendMessage.attachmentMenuTrigger.getElementLocator(),
Expand Down Expand Up @@ -167,8 +161,6 @@ dialTest(
'Chat is named automatically to user text if to send it with attachment',
async ({
dialHomePage,
talkToSelector,
marketplacePage,
setTestIds,
attachFilesModal,
sendMessage,
Expand All @@ -195,10 +187,6 @@ dialTest(
async () => {
await dialHomePage.openHomePage();
await dialHomePage.waitForPageLoaded();
await talkToSelector.selectEntity(
randomModelWithAttachment,
marketplacePage,
);
await sendMessage.attachmentMenuTrigger.click();
await attachmentDropdownMenu.selectMenuOption(
UploadMenuOptions.attachUploadedFiles,
Expand Down Expand Up @@ -237,8 +225,6 @@ dialTest(
'Blue loading bar is shown while the file is being uploaded to the message box',
async ({
dialHomePage,
talkToSelector,
marketplacePage,
setTestIds,
sendMessage,
tooltip,
Expand All @@ -258,10 +244,6 @@ dialTest(
await localStorageManager.setRecentModelsIds(randomModelWithAttachment);
await dialHomePage.openHomePage();
await dialHomePage.waitForPageLoaded();
await talkToSelector.selectEntity(
randomModelWithAttachment,
marketplacePage,
);
await sendMessage.attachmentMenuTrigger.click();
await dialHomePage.uploadData(
{ path: Attachment.sunImageName, dataType: 'upload' },
Expand Down Expand Up @@ -314,8 +296,6 @@ dialTest(
'Download attached file from user message',
async ({
dialHomePage,
talkToSelector,
marketplacePage,
setTestIds,
attachFilesModal,
sendMessage,
Expand Down Expand Up @@ -349,10 +329,6 @@ dialTest(
async () => {
await dialHomePage.openHomePage();
await dialHomePage.waitForPageLoaded();
await talkToSelector.selectEntity(
randomModelWithAttachment,
marketplacePage,
);
await sendMessage.attachmentMenuTrigger.click();
await attachmentDropdownMenu.selectMenuOption(
UploadMenuOptions.attachUploadedFiles,
Expand Down Expand Up @@ -488,8 +464,6 @@ dialTest(
'Error icon and red file name appear because of Network error while file is being uploaded',
async ({
dialHomePage,
talkToSelector,
marketplacePage,
setTestIds,
sendMessage,
uploadFromDeviceModal,
Expand All @@ -509,10 +483,6 @@ dialTest(
await localStorageManager.setRecentModelsIds(randomModelWithAttachment);
await dialHomePage.openHomePage();
await dialHomePage.waitForPageLoaded();
await talkToSelector.selectEntity(
randomModelWithAttachment,
marketplacePage,
);
await sendMessage.attachmentMenuTrigger.click();
await dialHomePage.uploadData(
{ path: Attachment.sunImageName, dataType: 'upload' },
Expand Down
Loading
Loading