File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/compass-e2e-tests/helpers Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -50,4 +50,11 @@ export async function saveAggregationPipeline(
5050
5151 // wait for the modal to disappear
5252 await savePipelineModal . waitForDisplayed ( { reverse : true } ) ;
53+
54+ // Wait for the aggregation's name to be displayed.
55+ await browser . waitForAnimations ( Selectors . AggregationPipelineName ) ;
56+ await browser . waitUntil ( async ( ) => {
57+ const text = await browser . $ ( Selectors . AggregationPipelineName ) . getText ( ) ;
58+ return text === aggregationName ;
59+ } ) ;
5360}
Original file line number Diff line number Diff line change @@ -824,6 +824,7 @@ export const AggregationWriteOperationConfirmationModalDescription = `${Aggregat
824824
825825export const AggregationSettingsButton =
826826 '[data-testid="pipeline-toolbar-settings-button"]' ;
827+ export const AggregationPipelineName = '[data-testid="pipeline-name"]' ;
827828export const AggregationCommentModeCheckbox = '#aggregation-comment-mode' ;
828829export const AggregationSampleSizeInput = '#aggregation-sample-size' ;
829830export const AggregationSettingsApplyButton = '#aggregation-settings-apply' ;
You can’t perform that action at this time.
0 commit comments