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

chore(e2e): add connectionName support to more helpers COMPASS-8002 #6033

Merged
merged 21 commits into from
Jul 18, 2024

Conversation

lerouxb
Copy link
Contributor

@lerouxb lerouxb commented Jul 16, 2024

No description provided.

@lerouxb lerouxb changed the title chore(e2e): add connectionName support to more helpers chore(e2e): add connectionName support to more helpers COMPASS-8002 Jul 16, 2024
@lerouxb lerouxb marked this pull request as ready for review July 17, 2024 20:00
@@ -41,8 +41,7 @@ export * from './get-feature';
export * from './set-feature';
export * from './save-favorite';
export * from './save-connection-string-as-favorite';
export * from './select-connection';
export * from './select-connection-menu-item';
export * from './sidebar-connection';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I combined a bunch of sidebar connection related commands into one file to mirror what we do for workspace management already. Otherwise it is a bit of a proliferation of little files. It might also help if we do move these to page objects because they'd already be together.

.waitForDisplayed({ reverse: true });
await browser.waitUntil(
async () => {
// keep retrying the click :(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Drive-by. This was something I moved out recently because clicking again won't work if the modal obscures it anyway, but it seems like it was necessary because it became flaky again.

@@ -59,10 +67,15 @@ export async function closeWorkspaceTabs(
// are multiple tabs then another tab will immediately become active and
// trip up the logic that checks that the tab you closed went away.
const id = await currentActiveTab.getAttribute('id');
debug('closing tab', { numTabsStart, id });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just some debugging in case this still flakes.

Copy link
Contributor

Choose a reason for hiding this comment

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

should we add todos to clean these up later?

Copy link
Contributor

@paula-stacho paula-stacho left a comment

Choose a reason for hiding this comment

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

Neat! 🎉 Sounds like we could now also get rid of all the delete <telemetryEvent>.connection_id; that I've added for telemetry!

// confusing. Also this selector is just for the actions button and it is
// assumed that at this point it is the only one. But the drop confirmation
// usually catches that.
await browser.clickVisible(Selectors.SidebarNavigationItemShowActionsButton);
Copy link
Contributor Author

@lerouxb lerouxb Jul 18, 2024

Choose a reason for hiding this comment

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

This wasn't scoped to the collection. If one collection was active it would show the three dot menu. If you then hover over a second collection it would show that three dot menu too..

Same bug copy/pasted in several other places.

@lerouxb lerouxb merged commit 10919e2 into main Jul 18, 2024
30 checks passed
@lerouxb lerouxb deleted the e2e-connectionName branch July 18, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants