From 2d6345df7ce44b12c6ddffc48a23dd005826ea97 Mon Sep 17 00:00:00 2001 From: Basit Chonka Date: Fri, 1 Nov 2024 16:43:13 +0100 Subject: [PATCH] clean up --- .../tests/atlas-cloud/global-writes.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/compass-e2e-tests/tests/atlas-cloud/global-writes.test.ts b/packages/compass-e2e-tests/tests/atlas-cloud/global-writes.test.ts index b58e474d655..ba5543e9942 100644 --- a/packages/compass-e2e-tests/tests/atlas-cloud/global-writes.test.ts +++ b/packages/compass-e2e-tests/tests/atlas-cloud/global-writes.test.ts @@ -13,13 +13,12 @@ type GeoShardingFormData = { keyType?: 'UNIQUE' | 'HASHED'; }; -type GeoShardingState = 'UNSHARDED' | 'SHARDING' | 'SHARD_KEY_CORRECT'; +type GeoShardingStatus = 'UNSHARDED' | 'SHARDING' | 'SHARD_KEY_CORRECT'; async function createGeoShardKey( browser: CompassBrowser, formData: GeoShardingFormData ) { - // shard-collection-form await browser.setComboBoxValue( Selectors.GlobalWrites.ShardKeyFormSecondKeyInputCombobox, formData.secondShardKey @@ -38,11 +37,11 @@ async function createGeoShardKey( async function waitForGlobalWritesStatus( browser: CompassBrowser, - nextState: GeoShardingState + nextStatus: GeoShardingStatus ) { await browser.waitUntil(async () => { const content = await browser.$( - Selectors.GlobalWrites.tabStatus(nextState) + Selectors.GlobalWrites.tabStatus(nextStatus) ); return await content.isDisplayed(); });