Skip to content

Instantly share code, notes, and snippets.

import { faker } from "@faker-js/faker";
import "cypress-wait-until";
describe("Form Actions functionality test", () => {
let config;
const FormDescription= "This a duplicate form created by automation script";
const formName= "Actions-duplicateTestForm";
const ErrorMessage= "Form validation failed: The Name or Path already exists. They must be unique.";
const SpecialCharacters= "test@#$%^&*form!";
const SpecialCharactersErrorMessage= "Title: Only contain alphanumeric characters, hyphens(not at the start or end), spaces,and must include at least one letter.";
beforeEach(() => {
# General Settings
DEBUG=false
FOMRSFLOW_DATA_LAYER_WORKERS=4
FORMSFLOW_DATALAYER_CORS_ORIGINS=*
REDIS_URL=redis://192.168.1.2:6379/0
MULTI_TENANCY_ENABLED=false
KEYCLOAK_ENABLE_CLIENT_AUTH=false
KEYCLOAK_URL_REALM=forms-flow-ai
KEYCLOAK_URL=http://192.168.1.2:8080
JWT_OIDC_JWKS_URI=http://192.168.1.2:8080/auth/realms/forms-flow-ai/protocol/openid-connect/certs
2025-04-10 16:52:03 docker-entrypoint.sh: line 2: $'\r': command not found
2025-04-10 16:52:03 starting application
2025-04-10 16:52:04 Traceback (most recent call last):
2025-04-10 16:52:04 File "/usr/local/bin/flask", line 8, in <module>
2025-04-10 16:52:04 sys.exit(main())
2025-04-10 16:52:04 ^^^^^^
2025-04-10 16:52:04 File "/usr/local/lib/python3.12/site-packages/flask/cli.py", line 1064, in main
2025-04-10 16:52:04 cli.main()
2025-04-10 16:52:04 File "/usr/local/lib/python3.12/site-packages/click/core.py", line 1078, in main
{
"--navbar-active-submenu-bg-color": "#f6f9fc",
"--navbar-active-submenu-font-color": "#2d2d2d",
"--navbar-active-submenu-font-weight": "700",
"--navbar-active-submenu-font-size": "1rem",
"--navbar-hover-submenu-bg-color": "#EDEBE9",
"--navbar-hover-submenu-font-color": "#2d2d2d",
"--navbar-hover-submenu-font-weight": "500",
"--navbar-hover-submenu-font-size": "1rem",
"--navbar-menu-hover-bg-color": "#EDEBE9",
import "cypress-wait-until";
import { faker } from '@faker-js/faker';
describe("Build/Import page Functionality test", () => {
beforeEach(() => {
// Navigate to the sign-in page before each test execution
cy.visitSignInPage();
cy.loginToFormsflow("Designer");
});
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0993co4" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.8.1">
<bpmn:process id="onestepapproval" name="One Step Approval" isExecutable="true" camunda:versionTag="1">
<bpmn:startEvent id="StartEvent_1" name="Start Request">
<bpmn:outgoing>SequenceFlow_0ociprs</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="reviewer" name="Review Submission" camunda:candidateGroups="formsflow/formsflow-reviewer">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="action" label="Action" type="string" />
2024-10-16 17:53:36 2024-10-16 12:23:36,159 INFO [org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory] (main) Node name: node_622718, Site name: null
2024-10-16 17:53:36 2024-10-16 12:23:36,168 INFO [org.keycloak.broker.provider.AbstractIdentityProviderMapper] (main) Registering class org.keycloak.broker.provider.mappersync.ConfigSyncEventListener
2024-10-16 17:53:37 2024-10-16 12:23:37,376 INFO [org.keycloak.exportimport.dir.DirImportProvider] (main) Importing from directory /opt/keycloak/bin/../data/import
2024-10-16 17:53:37 2024-10-16 12:23:37,377 INFO [org.keycloak.services] (main) KC-SERVICES0030: Full model import requested. Strategy: IGNORE_EXISTING
2024-10-16 17:53:39 2024-10-16 12:23:39,437 INFO [com.arjuna.ats.jbossatx] (main) ARJUNA032014: Stopping transaction recovery manager
2024-10-16 17:53:39 2024-10-16 12:23:39,489 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to start server in (development) mode
2024-10-16 17:53:39 20
# Flask env value. E.g, "development", "production"
FLASK_ENV=development
# Flask debug flag
FLASK_DEBUG=true
# Sql alchemy echo flag
SQLALCHEMY_ECHO=
# keycloak settings
# Wellknown URL. E.g, https://../auth/realms/one-realm-auth/.well-known/openid-configuration
JWT_OIDC_WELL_KNOWN_CONFIG=http://192.168.1.10:8080/auth/realms/multitenant/.well-known/openid-configuration
# Flask env value. E.g, "development", "production"
FLASK_ENV=development
# Flask debug flag
FLASK_DEBUG=true
# Sql alchemy echo flag
SQLALCHEMY_ECHO=
# keycloak settings
# Wellknown URL. E.g, https://../auth/realms/one-realm-auth/.well-known/openid-configuration
JWT_OIDC_WELL_KNOWN_CONFIG=http://192.168.1.10:8080/auth/realms/multitenant/.well-known/openid-configuration
2024-09-03 16:20:46 Executing command: /opt/keycloak/bin/kc.sh start-dev --import-realm --http-relative-path /auth
2024-09-03 16:20:48 Updating the configuration and installing your custom providers, if any. Please wait.
2024-09-03 16:20:53 2024-09-03 10:50:52,325 WARN [org.key.services] (build-20) KC-SERVICES0047: configurable-idp-authenticator (com.formsflow.idm.authenticator.ConfigurableIdpAuthenticatorFactory) is implementing the internal SPI authenticator. This SPI is internal and may change without notice
2024-09-03 16:21:00 2024-09-03 10:51:00,932 INFO [io.qua.dep.QuarkusAugmentor] (main) Quarkus augmentation completed in 10940ms
2024-09-03 16:21:07 2024-09-03 10:51:07,403 WARN [io.agroal.pool] (agroal-11) Datasource '<default>': Connection to keycloak-db:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
2024-09-03 16:21:07 2024-09-03 10:51:07,406 WARN [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator] (JPA Startup Thr