Skip to content

Latest commit

 

History

History
104 lines (67 loc) · 4.52 KB

README.md

File metadata and controls

104 lines (67 loc) · 4.52 KB

Frontegg Frontend + Automation Assignment

General Guidelines

  1. Please clone this project and perform the task on your local machine.
  2. Please submit this project by a new Github repo or a zip file.
  3. For ANY questions, feel free to contact me.
  4. Good Luck!

Part 1 - Building a dynamic form

Overview

  1. The purpose of this task is to build a simple dynamic form with matching types and validations based on a configuration scheme we provide to you.
  2. The form should be built dynamically on run time based on the form configuration located in the configuration folder.

Requirements:

  1. The form will load inputs and render components based on the configuration where order matters
  2. Based on the JSON configuration, the form input will inherit its type and validation

Technical requirements:

  1. The form builder should be built using React.JS Hooks with Typescript
  2. All validations should be in place
  3. The form MUST be responsive

The form fields scheme includes the following properties:

  1. key - this is the field key which should be sent on the form submission object
  2. Label - the input display label
  3. type - The type of the input field:
    • string - an alphanumeric string
    • phone - phone number with country code
    • email - an email address
    • boolean
    • gender - male / female / other
    • options - a dropdown of options
  4. required - whether this field is mandatory or not
  5. placeholder - the placeholder of the input
  6. width - width of the input in a row

Part 2 - Getting to know Frontegg and Cypress

  1. Sign-up to Frontegg with your private mail

  2. Integrate Frontegg to your dynamic form app, using the guide found in the Frontegg portal Or on Frontegg’s documentation

  3. After going through the Frontegg customer journey & integration, take some time and explore the Frontegg portal, admin portal, and available features, and provide a feedback about a couple of bugs/UX issues/suggestions for improvement you find in the portal. Feel free to be creative:)

  4. Automation - please provide a working example of a Cypress folder that tests your app in a simple login flow of user and password. It will be a bonus if you are able to also test your dynamic form. (We test quality better then quantity)

Good Luck!


General React Guidlines

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.