Skip to content

Commit

Permalink
Fix script issue
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeAlonso committed Jan 24, 2024
1 parent ad4c545 commit 6a51b40
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,13 @@ Add Environment Variables In Workbench
... ${value}
IF ${n_pairs}-${pair_idx} > 1
Click Element ${ENV_VARIABLES_SECTION_XP}/div[contains(@class, "-l-split")][${idx}]//button[text()="${add_key_value_text}"]

Check warning

Code scanning / Robocop

Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test

Line is too long (146/120)
Click Element //a[@href="#environment-variables"]
# The element we want to click might get pushed out of view on every loop, let's scroll by an approx
# amount of pixels for the block of elements that gets added.
IF "${add_key_value_text}" == "Add another key / value pair"
Execute Javascript document.getElementsByClassName("pf-v5-c-drawer__content")[1].scrollBy(0,500) # robocop: disable
ELSE IF "${add_key_value_text}" == "Add another variable"
Execute Javascript document.getElementsByClassName("pf-v5-c-drawer__content")[1].scrollBy(0,700) # robocop: disable
END
END
END
ELSE IF "${input_type}" == "${UPLOAD_TYPE}"
Expand Down

0 comments on commit 6a51b40

Please sign in to comment.