From 87bb1a8d09ffc4552166662940573be56554ea0d Mon Sep 17 00:00:00 2001 From: Irina_Kartun Date: Fri, 31 Jan 2025 19:03:52 +0100 Subject: [PATCH] feat/3052-from-edit-to-move-endpoint: fixed more e2e --- apps/chat-e2e/src/tests/defaultModelSettings.test.ts | 1 - apps/chat-e2e/src/tests/sharedChatIcons.test.ts | 4 ++-- apps/chat-e2e/src/tests/sharedFilesAttachments.test.ts | 2 +- apps/chat-e2e/src/tests/sharedPromptIcons.test.ts | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/chat-e2e/src/tests/defaultModelSettings.test.ts b/apps/chat-e2e/src/tests/defaultModelSettings.test.ts index 63510d655c..cdb637d8ad 100644 --- a/apps/chat-e2e/src/tests/defaultModelSettings.test.ts +++ b/apps/chat-e2e/src/tests/defaultModelSettings.test.ts @@ -414,7 +414,6 @@ dialTest( }); await dialHomePage.waitForPageLoaded(); await chat.changeAgentButton.click(); - nonDefaultModel = ModelsUtil.getModel('gpt-4-turbo-2024-04-09')!; await talkToAgentDialog.selectAgent(nonDefaultModel, marketplacePage); await dialHomePage.mockChatTextResponse( MockedChatApiResponseBodies.simpleTextBody, diff --git a/apps/chat-e2e/src/tests/sharedChatIcons.test.ts b/apps/chat-e2e/src/tests/sharedChatIcons.test.ts index 296e56f25f..9c2eaa22ae 100644 --- a/apps/chat-e2e/src/tests/sharedChatIcons.test.ts +++ b/apps/chat-e2e/src/tests/sharedChatIcons.test.ts @@ -417,7 +417,7 @@ dialTest( await dialTest.step( 'Confirm conversation rename and verify conversation is not shared and arrow icon disappears', async () => { - await confirmationDialog.confirm({ triggeredHttpMethod: 'DELETE' }); + await confirmationDialog.confirm({ triggeredHttpMethod: 'PUT' }); await conversationAssertion.assertEntityArrowIconState( { name: newName }, 'hidden', @@ -443,7 +443,7 @@ dialTest( await dialTest.step( 'Confirm conversation model change and verify conversation is not shared and arrow icon disappears', async () => { - await confirmationDialog.confirm({ triggeredHttpMethod: 'DELETE' }); + await confirmationDialog.confirm({ triggeredHttpMethod: 'PUT' }); await conversationAssertion.assertEntityArrowIconState( { name: newName }, 'hidden', diff --git a/apps/chat-e2e/src/tests/sharedFilesAttachments.test.ts b/apps/chat-e2e/src/tests/sharedFilesAttachments.test.ts index b28793bafe..7d3bda1c9a 100644 --- a/apps/chat-e2e/src/tests/sharedFilesAttachments.test.ts +++ b/apps/chat-e2e/src/tests/sharedFilesAttachments.test.ts @@ -368,7 +368,7 @@ dialSharedWithMeTest( ); await renameConversationModal.saveButton.click(); await confirmationDialog.confirm({ - triggeredHttpMethod: 'DELETE', + triggeredHttpMethod: 'PUT', }); break; case 'model change': diff --git a/apps/chat-e2e/src/tests/sharedPromptIcons.test.ts b/apps/chat-e2e/src/tests/sharedPromptIcons.test.ts index 01d3016b32..64d1369d91 100644 --- a/apps/chat-e2e/src/tests/sharedPromptIcons.test.ts +++ b/apps/chat-e2e/src/tests/sharedPromptIcons.test.ts @@ -240,7 +240,7 @@ dialTest( async () => { await promptModalDialog.setField(promptModalDialog.name, newName); await promptModalDialog.saveButton.click(); - await confirmationDialog.confirm({ triggeredHttpMethod: 'DELETE' }); + await confirmationDialog.confirm({ triggeredHttpMethod: 'PUT' }); await promptAssertion.assertEntityArrowIconState( { name: newName }, 'hidden',