Skip to content

Commit

Permalink
LEAF 4526 unpublished forms test module updates (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerinkayne authored Oct 2, 2024
1 parent 735b17c commit 560a153
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion API-tests/formStack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestFormStack_NewFormProperties(t *testing.T) {
}

got = strconv.Itoa(category.Visible)
want = "1"
want = "-1"
if !cmp.Equal(got, want) {
t.Errorf("Visible = %v, want = %v", got, want)
}
Expand Down
8 changes: 8 additions & 0 deletions end2end/tests/lifecycleSimpleTravel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ test('navigate to Form Editor and create a travel form', async ({ page }, testIn
await page.locator('#workflowID').selectOption(optionToSelect);
expect(page.locator('#workflowID')).toHaveValue(optionToSelect);

// Publish the form
let formOptionToSelect = await page.locator('option', { hasText: 'Available' }).getAttribute('value');
if(formOptionToSelect == null) {
formOptionToSelect = '';
}
await page.locator('#availability').selectOption(formOptionToSelect);
expect(page.locator('#availability')).toHaveValue("1");

const screenshot = await page.screenshot();
await testInfo.attach('screenshot', { body: screenshot, contentType: 'image/png' });
});
Expand Down

0 comments on commit 560a153

Please sign in to comment.