Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mabaasit committed Nov 1, 2024
1 parent 957f946 commit 2d6345d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
});
Expand Down

0 comments on commit 2d6345d

Please sign in to comment.