Skip to content

test(site): e2e: create workspace with rich parameters #9185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Aug 22, 2023
Prev Previous commit
Next Next commit
make fmt
  • Loading branch information
mtojek committed Aug 21, 2023
commit 06c091292fba2298f31bb9a481badffba6a2dfd7
8 changes: 6 additions & 2 deletions site/e2e/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,17 @@ export const verifyParameters = async (

if (richParameter.type === "bool") {
const parameterField = await parameterLabel.waitForSelector(
"[data-testid='parameter-field-bool'] .MuiRadio-root.Mui-checked" + muiDisabled + " input",
"[data-testid='parameter-field-bool'] .MuiRadio-root.Mui-checked" +
muiDisabled +
" input",
)
const value = await parameterField.inputValue()
expect(value).toEqual(buildParameter.value)
} else if (richParameter.options.length > 0) {
const parameterField = await parameterLabel.waitForSelector(
"[data-testid='parameter-field-options'] .MuiRadio-root.Mui-checked" + muiDisabled + " input",
"[data-testid='parameter-field-options'] .MuiRadio-root.Mui-checked" +
muiDisabled +
" input",
)
const value = await parameterField.inputValue()
expect(value).toEqual(buildParameter.value)
Expand Down
6 changes: 5 additions & 1 deletion site/e2e/tests/createWorkspace.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ test("create workspace", async ({ page }) => {
})

test("create workspace with default immutable parameters", async ({ page }) => {
const richParameters: RichParameter[] = [secondParameter, fourthParameter, sixthParameter]
const richParameters: RichParameter[] = [
secondParameter,
fourthParameter,
sixthParameter,
]
const template = await createTemplate(page, {
plan: [
{
Expand Down