CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-storybook--addon-backgrounds

Deprecated Storybook addon that throws migration errors directing users to the new package structure in Storybook 9.0

86

1.08x
Overview
Eval results
Files

task.mdevals/scenario-4/

Interactive Form Component Testing

A component library that implements a user registration form with automated interaction testing to verify form behavior and validation.

Capabilities

Form Interaction Testing

  • The form accepts user input for username, email, and password fields and displays them correctly @test
  • The form validates email format and shows an error message for invalid emails @test
  • The form validates password strength and shows an error for passwords shorter than 8 characters @test
  • The submit button is disabled when required fields are empty @test
  • The form shows a success message after successful submission @test

Implementation

@generates

API

export interface RegistrationFormProps {
  onSubmit?: (data: FormData) => void;
}

export interface FormData {
  username: string;
  email: string;
  password: string;
}

export function RegistrationForm(props: RegistrationFormProps): JSX.Element;

Dependencies { .dependencies }

@storybook/test { .dependency }

Provides testing utilities including userEvent and expect for interaction testing.

react { .dependency }

Provides the React library for building the UI component.

Install with Tessl CLI

npx tessl i tessl/npm-storybook--addon-backgrounds

tile.json