Skip to content
Merged
Changes from 1 commit
Commits
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
32 changes: 17 additions & 15 deletions packages/compass-e2e-tests/tests/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,22 +334,24 @@ describe('Connection string', function () {
.$(Selectors.ConnectionModal)
.waitForDisplayed({ reverse: true });

await browser.clickVisible(Selectors.ConnectionToastErrorDebugButton);
// TODO(COMPASS-9759) we might have to opt-in via the modal once that's a thing
const messagesElement = browser.$(Selectors.AssistantChatMessages);
await messagesElement.waitForDisplayed();
// TODO(COMPASS-9748) check the response from the chatbot too

await browser.waitUntil(async () => {
return (await messagesElement.getText()).includes(
'Given the error message below,'
);
});
if (!TEST_COMPASS_WEB) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is surprising, I'm enabling the ff locally and it seems to work just fine:

image

Why are we skipping those here? Do we have a ticket for re-enabling those?

Copy link
Contributor Author

@lerouxb lerouxb Aug 28, 2025

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

await browser.clickVisible(Selectors.ConnectionToastErrorDebugButton);
// TODO(COMPASS-9759) we might have to opt-in via the modal once that's a thing
const messagesElement = browser.$(Selectors.AssistantChatMessages);
await messagesElement.waitForDisplayed();
// TODO(COMPASS-9748) check the response from the chatbot too

await browser.waitUntil(async () => {
return (await messagesElement.getText()).includes(
'Given the error message below,'
);
});

// clear the chat so that a broken message doesn't break every future message
await browser.clickVisible(Selectors.AssistantClearChatButton);
await browser.clickVisible(Selectors.ConfirmClearChatModalConfirmButton);
await browser.clickVisible(Selectors.SideDrawerCloseButton);
// clear the chat so that a broken message doesn't break every future message
await browser.clickVisible(Selectors.AssistantClearChatButton);
await browser.clickVisible(Selectors.ConfirmClearChatModalConfirmButton);
await browser.clickVisible(Selectors.SideDrawerCloseButton);
}
});

it('can connect to an Atlas replicaset without srv', async function () {
Expand Down
Loading