Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite246925

Browse files
committed
fix(e2e): handle dynamic parameters in fillParameters function
With dynamic parameters now being the default, parameters with defaultvalues may not be visible in the UI. The fillParameters function nowchecks if a parameter field exists before trying to interact with it,allowing tests to work with both classic and dynamic parameter flows.Fixes the failing e2e test 'update workspace with ephemeral parameter enabled'.
1 parentc4f4fe5 commite246925

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

‎site/e2e/helpers.ts‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,8 +898,19 @@ const fillParameters = async (
898898
);
899899
}
900900

901+
// In dynamic parameter flow, parameters with default values may not be visible
902+
// Check if the parameter field exists before trying to interact with it
903+
constparameterSelector=`[data-testid='parameter-field-${richParameter.name}']`;
904+
constparameterExists=awaitpage.locator(parameterSelector).count()>0;
905+
906+
if(!parameterExists){
907+
// Parameter is not visible (likely due to dynamic parameter flow)
908+
// This is expected behavior when the parameter has a default value
909+
continue;
910+
}
911+
901912
constparameterLabel=awaitpage.waitForSelector(
902-
`[data-testid='parameter-field-${richParameter.name}']`,
913+
parameterSelector,
903914
{state:"visible"},
904915
);
905916

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp