cypress-react-component-test-examples
Over 365 Cypress component testing examples with React
File Explorer
Download Latest Version (.zip)- main.yml
- merge-gatekeeper.yml
- settings.json
- counter.comp-spec.jsx
- counter.jsx
- app.comp-spec.tsx
- App.tsx
- lyrics.ts
- 1.falsies.comp-spec.tsx
- 2.basic-conditional-rendering.comp-spec.tsx
- App.css
- App.tsx
- List.tsx
- useDeferredValue.cy.tsx
- App.tsx
- Timer.tsx
- useEffect-twice.cy.tsx
- App.tsx
- index.css
- PersonForm.tsx
- useId.cy.tsx
- app.comp-spec.tsx
- app.comp-spec.tsx
- App.tsx
- App.tsx
- index.css
- List.tsx
- useTransition.cy.tsx
- Button.cy.tsx
- Button.module.css
- Button.tsx
- colors.module.css
- custom.comp-spec.jsx
- context.comp-spec.jsx
- README.md
- simple-component.jsx
- simple-context.js
- state.comp-spec.jsx
- curry.cy.tsx
- forward-ref.comp-spec.jsx
- box-styles.css
- styling.cy.jsx
- styling.jsx
- forms.cy.jsx
- forms.jsx
- rendering-arrays.cy.jsx
- rendering-arrays.jsx
- useState.cy.jsx
- useState.jsx
- useEffect.cy.jsx
- useEffect.jsx
- lifting-state.cy.jsx
- lifting-state.jsx
- tic-tac-toe.css
- tic-tac-toe.cy.js
- tic-tac-toe.js
- utils.js
- useRef.cy.jsx
- useRef.jsx
- errorBoundary-example.cy.js
- errorBoundary-example.js
- pokemon.js
- styles.css
- hook-flow.cy.js
- hook-flow.js
- hook-flow.png
- useReducer.cy.jsx
- useReducer.jsx
- pokemon.js
- styles.css
- useCallback.cy.jsx
- useCallback.jsx
- pokemon.jsx
- styles.css
- useContext-pokemon.cy.jsx
- useContext-pokemon.jsx
- utils.js
- useContext.cy.jsx
- useContext.jsx
- useLayoutEffect.cy.jsx
- useLayoutEffect.jsx
- useImperativeHandle.cy.jsx
- useImperativeHandle.jsx
- counter-after.cy.jsx
- counter-before.cy.jsx
- auth-context.js
- contex-module.cy.jsx
- user-client.js
- compound-components.cy.jsx
- compound-components.jsx
- flexible-compound-components.cy.jsx
- flexible-compound-components.jsx
- prop-collections-and-getters.cy.jsx
- prop-collections-and-getters.jsx
- state-reducer.jsx
- state.reducer.cy.jsx
- control-props.cy.jsx
- control-props.jsx
- switch.js
- switch.styles.css
- recoil-example.cy.jsx
- recoil-example.jsx
- utils.js
- counter.cy.jsx
- counter.jsx
- login.cy.jsx
- login.jsx
- login-submission.cy.jsx
- login-submission.jsx
- login.jsx
- spinner.jsx
- location.cy.js
- location.js
- spinner.js
- easy-button-comp.js
- easy-button.cy.js
- easy-button.js
- theme.js
- favorite-number.cy.js
- favorite-number.js
- a11y.cy.js
- 08.stub-window.fetch.cy.jsx
- 09.stub-newtork.cy.jsx
- api.js
- greeting-loader.jsx
- api.js
- editor.cy.js
- editor.js
- main.cy.jsx
- Main.jsx
- redux-counter.js
- redux-reducer.js
- redux-store.js
- redux.cy.js
- modal.cy.js
- modal.js
- Modal.cy.tsx
- Modal.tsx
- ModalYesNo.tsx
- suspense-data-fetching.cy.js
- suspense-data-fetching.js
- useTransition.cy.js
- useTransition.js
- pokemon.js
- utils.js
- search-filter.cy.tsx
- search-filter.tsx
- useRef-not-useState-formSubmit-pipe.cy.tsx
- useState-functionVersion-forMultipleSetStates-partial.cy.tsx
- useEffect-with-dep-array-instead-of-sync-code.cy.tsx
- unneccessary-useEffect.cy.tsx
- useMemo-with-object-or-array-equality.cy.tsx
- useFetch-use-cleanUpFunction-withAbortController.cy.tsx
- useFetch.tsx
- ToggleComponent.js
- useToggle.cy.js
- useToggle.js
- FetchComponent.js
- useFetch.cy.js
- useFetch.js
- ScriptComponent.js
- useScript.cy.js
- useScript.js
- DeepCompareEffectComponent.js
- useDeepCompareEffect.cy.js
- useDeepCompareEffect.js
- EventListenerComponent.js
- useEventListener.cy.js
- useEventListener.js
- OnScreenComponent.js
- useOnScreen.cy.js
- useOnScreen.js
- useWindowSize.cy.js
- useWindowSize.js
- WindowSizeComponent.js
- MediaQueryComponent.js
- useMediaQuery.cy.js
- useMediaQuery.js
- GeolocationComponent.js
- useGeoLocation.cy.js
- useGeolocation.js
- StateWithValidationComponent.js
- useStateWithValidation.cy.js
- useStateWithValidation.js
- SizeComponent.js
- useSize.cy.js
- useSize.js
- TimeoutComponent.js
- useTimeout.cy.js
- useTimeout.js
- EffectOnceComponent.js
- useEffectOnce.cy.js
- useEffectOnce.js
- ClickOutsideComponent.js
- useClickOutside.cy.js
- useClickOutside.js
- body.css
- DarkModeComponent.js
- useDarkMode.cy.js
- useDarkMode.js
- CopyToClipboardComponent.js
- useCopyToClipboard.cy.js
- useCopyToClipboard.js
- CookieComponent.js
- useCookie.cy.js
- useCookie.js
- en.json
- index.js
- sp.json
- TranslationComponent.js
- useTranslation.cy.js
- useTranslation.js
- OnlineStatusComponent.js
- useOnlineStatus.cy.js
- useOnlineStatus.js
- RenderCountComponent.js
- useRenderCount.cy.js
- useRenderCount.js
- DebugInformationComponent.js
- useDebugInformation.cy.js
- useDebugInformation.js
- HoverComponent.js
- useHover.cy.js
- useHover.js
- DebounceComponent.js
- useDebounce.cy.js
- useDebounce.js
- LongPressComponent.js
- useLongPress.cy.js
- useLongPress.js
- UpdateEffectComponent.js
- useUpdateEffect.cy.js
- useUpdateEffect.js
- ArrayComponent.js
- useArray.cy.js
- useArray.js
- PreviousComponent.js
- usePrevious.cy.js
- usePrevious.js
- StateWithHistoryComponent.js
- useStateWithHistory.cy.js
- useStateWithHistory.js
- StorageComponent.js
- useStorage.cy.js
- useStorage.js
- AsyncComponent.js
- useAsync.cy.js
- useAsync.js
- Book.jsx
- BookList.jsx
- BookSidebar.jsx
- Home.jsx
- NewBook.jsx
- NotFound.jsx
- app.jsx
- BooksLayout.jsx
- react-router-advanced.cy.jsx
- react-router-test-useParams.cy.tsx
- react-router-test-useParams.cy.tsx
- wholesale-pricing.tsx
- List.jsx
- useCallback.cy.jsx
- useCallback.jsx
- ClassContextComponent.jsx
- FunctionContextComponent.jsx
- useContext.cy.jsx
- useContext.jsx
- FunctionContextWithProvider.jsx
- ThemeContext.jsx
- useContext-ThemeProvider.cy.jsx
- useContext-ThemeProvider.jsx
- app.js
- use-local-storage.cy.js
- use-local-storage.js
- app.js
- list.js
- useDeferredValue.cy.js
- 1.useEffect-example.cy.js
- 1.useEffect-example.js
- 2.useEffect-example.cy.js
- 2.useEffect-example.js
- App.js
- EmailForm.js
- useId.cy.js
- ConfirmationModal.jsx
- useImperativeHandle.cy.jsx
- useImperativeHandle.jsx
- useLayoutEffect.cy.js
- useLayoutEffect.js
- useMemo.cy.jsx
- useMemo.jsx
- styles.css
- Todo.jsx
- Todos.jsx
- useReducer.cy.jsx
- 1.useRef.cy.js
- 1.useRef.js
- useState-example.cy.js
- useState-example.js
- app.jsx
- useTransition.cy.jsx
- app.cy.js
- App.js
- Dog.js
- samoyed.jpg
- styles.css
- api.js
- app.cy.js
- App.js
- styles.css
- utils.js
- api.js
- app.cy.js
- App.js
- styles.css
- utils.js
- 1.say-hello.cy.js
- 1.say-hello.js
- 2.window-size.cy.js
- 2.window-size.js
- 3.user-storage.cy.js
- 3.user-storage.js
- 4.challenge.cy.js
- 4.challenge.js
- useRef-vs-useState.cy.js
- colorChoiceText.cy.js
- ColorChoiceText.js
- colorPicker.cy.js
- ColorPicker.js
- colors.cy.js
- Colors.js
- colorSample.cy.js
- ColorSample.js
- styles.css
- 1.say-hello-memo.cy.js
- 1.say-hello-memo.js
- anagrams.js
- app.cy.js
- App.js
- styles.css
- 1.0.say-hello-custom-hook.cy.js
- 1.0.say-hello-custom-hook.js
- 1.1.say-hello-custom-hook.cy.js
- 1.1.say-hello-custom-hook.js
- use-doc-title.js
- use-random-greeting.js
- 2.window-size.cy.js
- 2.window-size.js
- use-window-size.js
- 3.user-storage.cy.js
- 3.user-storage.js
- use-local-storage.js
- List.tsx
- useLoadItems.tsx
- InfiniteListWithHorizontalScroll.cy.tsx
- InfiniteListWithHorizontalScroll.tsx
- InfiniteListWithReverseHozirontalScroll.cy.tsx
- InfiniteListWithReverseHozirontalScroll.tsx
- InfiniteListWithReverseVerticalScroll.cy.tsx
- InfiniteListWithReverseVerticalScroll.tsx
- InfiniteListWithVerticalScroll.cy.tsx
- InfiniteListWithVerticalScroll.tsx
- SimpleInfiniteList.cy.tsx
- SimpleInfiniteList.tsx
- counter-with-hooks.comp-spec.jsx
- counter-with-hooks.jsx
- counter-with-hooks.comp-spec.jsx
- counter-with-hooks.jsx
- counter.comp-spec.jsx
- counter.jsx
- counter-intermediate.comp-spec.jsx
- counter.jsx
- product-list.jsx
- product.comp-spec.jsx
- toggle.comp-spec.jsx
- toggle.jsx
- Content.js
- dark-mode.comp-spec.jsx
- styles.css
- Toggle.js
- use-dark-mode.js
- use-local-storage.js
- use-media.js
- App.js
- styles.css
- use-lock-body-scroll.comp-spec.jsx
- use-lock-body-scroll.js
- styles.css
- useAsync.cy.tsx
- useDebounce.cy.tsx
- useHover.cy.tsx
- useKeyPress.cy.tsx
- usePrevious.cy.tsx
- useTheme.cy.tsx
- useToggle.cy.tsx
- useWindowSize.cy.tsx
- App.tsx
- i18n.ts
- i18next.comp-spec.jsx
- LocalizedComponent.jsx
- LocalizedComponent.tsx
- README.md
- 01-useAtom.cy.tsx
- 02-useAtomValue-useSetAtom.cy.tsx
- 03-createStore-getDefaultStore.cy.tsx
- 04-provider-useStore.cy.tsx
- 05-atomWithStorage.cy.tsx
- 06-atomWithObservable-loadable.cy.tsx
- 07-atomWithReset-RESET-useResetAtom-atomWithDefault.cy.tsx
- 08-atomFamily.cy.tsx
- 09-useContext-comparison.cy.tsx
- 10-jotai-comparison.cy.tsx
- 11-useHydrateAtoms.cy.tsx
- 12-focusAtom-splitAtom-selectAtom.cy.tsx
- 13-customHooks-atomWithToggle.cy.tsx
- 14-customHooks-atomWithToggleAndStorage.cy.tsx
- 15-customHooks-atomWithCompare.cy.tsx
- button.comp-spec.jsx
- checkbox-labels.comp-spec.jsx
- checkbox-labels.js
- list-demo.js
- list-item.comp-spec.jsx
- README.md
- top-100-movies.js
- timer.png
- README.md
- timer-view.jsx
- timer.comp-spec.jsx
- Timer.js
- PizzaProps.comp-spec.jsx
- PizzaProps.js
- README.md
- remote-pizza-no-babel-does-not-work.spec.jsx
- RemotePizza.js
- services.js
- cannot-click.png
- README.md
- spec.comp-spec.jsx
- axios.comp-spec.jsx
- axios.jsx
- 2-axios.comp-spec.jsx
- 2-users-named.jsx
- fetch.comp-spec.jsx
- fetch.jsx
- fetch.comp-spec.jsx
- user.jsx
- error-boundary.comp-spec.jsx
- error-boundary.jsx
- full-navigation.comp-spec.jsx
- hello.comp-spec.jsx
- stateless-alert.comp-spec.jsx
- stateless-alert.jsx
- transpiled.comp-spec.jsx
- transpiled.jsx
- portal.comp-spec.jsx
- counter.comp-spec.jsx
- counter.css
- Counter.jsx
- counters.comp-spec.jsx
- counters.css
- Counters.jsx
- AddTodo.js
- Todo.js
- todos.comp-spec.jsx
- todos.css
- Todos.js
- add.comp-spec.jsx
- add.js
- 1.props.comp-spec.jsx
- 2.state.comp-spec.jsx
- 3.methods.comp-spec.jsx
- 4.thinking-in-components
- 5.conditional-rendering.comp-spec.jsx
- 6.styled-components.comp-spec.jsx
- 7.routing
- 8.context-api
- 9.hooks
- ProductsList.jsx
- ProductsList.spec.js
- 1.firstExample.comp-spec.jsx
- 1.FirstExample.jsx
- 2.formTouched.comp-spec.jsx
- 2.FormTouched.jsx
- 3.formikError.comp-spec.jsx
- 3.FormikError.jsx
- 4.FormikYup.comp-spec.jsx
- 4.FormikYup.jsx
- note.comp-spec.jsx
- Note.js
- products.comp-spec.jsx
- products.js
- Todos.comp-spec.jsx
- Todos.css
- Todos.jsx
- spec.comp-spec.jsx
- 1.comp-spec.jsx
- app.jsx
- in-memory.comp-spec.jsx
- 1.comp-spec.jsx
- fetcher.js
- game.comp-spec.jsx
- game.jsx
- shopping-list.comp-spec.jsx
- shopping-list.jsx
- square.comp-spec.jsx
- square.jsx
- tic-tac-toe-class-comp.jsx
- tic-tac-toe-class.cy.jsx
- tic-tac-toe.css
- useLocalStorage.js
- login.cy.tsx
- login.tsx
- bookReducer.js
- curry-vs-partial.js
- fibonacciReducer.js
- numberReducer.js
- numberReducer2-redux-actions.js
- counter.cy.jsx
- counter.jsx
- reducer.js
- store.js
- actions.js
- counter.cy.jsx
- counter.jsx
- reducer.js
- store.js
- counter.cy.jsx
- counter.jsx
- reducer.js
- store.js
- actions.js
- counter.cy.jsx
- counter.jsx
- reducer.js
- store.js
- actions.js
- App.css
- App.cy.jsx
- App.jsx
- LoanForm.jsx
- OtherView.jsx
- reducer.js
- Sidebar.jsx
- actions.js
- App.cy.jsx
- App.jsx
- ColorList.jsx
- colors.json
- ColorSearch.jsx
- reducer.js
- selectors.js
- selectors.test.js
- actions.js
- App.cy.jsx
- App.jsx
- ColorList.jsx
- colors.json
- ColorSearch.jsx
- reducer.js
- selectors.js
- selectors.test.js
- actions.js
- App.cy.jsx
- App.js
- LoanForm.jsx
- LoanResult.jsx
- reducer.js
- selectors.js
- selectors.test.js
- actions.js
- App.cy.jsx
- App.js
- LoanForm.jsx
- LoanResult.jsx
- reducer.js
- selectors.js
- actions.js
- reducer.js
- reducer.test.js
- ToastItem.jsx
- ToastList.css
- ToastList.jsx
- AddToast.jsx
- App.cy.jsx
- App.jsx
- rootReducer.js
- listReducer.js
- listReducer.test.js
- searchReducer.js
- actions.js
- api.js
- App.cy.jsx
- App.jsx
- CityItem.jsx
- CityList.jsx
- CitySearch.jsx
- index.jsx
- listReducer.js
- listReducer.test.js
- operations.js
- reducer.js
- response.json
- searchReducer.js
- actions.js
- api.js
- App.cy.jsx
- App.js
- index.js
- operations.js
- reducer.js
- selectors.js
- StoryItem.jsx
- TopStories.jsx
- actions.js
- reducer.js
- ShowMore.jsx
- App.cy.jsx
- App.js
- rootReducer.jsx
- actions.js
- api.js
- ArticleItem.jsx
- Articles.jsx
- operations.js
- reducer.js
- actions.js
- api.js
- BookItem.jsx
- BookList.jsx
- Books.jsx
- Categories.jsx
- CategoryItem.jsx
- operations.js
- reducer.js
- actions.js
- api.js
- MovieReviewItem.jsx
- MovieReviews.jsx
- operations.js
- reducer.js
- api-tools.js
- connectWithOnLoad.js
- App.cy.jsx
- App.jsx
- AppRouter.jsx
- Home.jsx
- rootReducer.js
- STOLZL-BOLD.TTF
- STOLZL-MEDIUM.TTF
- STOLZL-REGULAR.TTF
- edit.svg
- remove.svg
- Todo.cy.tsx
- todo.module.scss
- Todo.tsx
- TodoForm.cy.tsx
- todoForm.module.scss
- TodoForm.tsx
- todos.module.scss
- Todos.tsx
- todosSlice.ts
- hooks.ts
- store.ts
- App.cy.tsx
- app.module.scss
- App.tsx
- index.scss
- index.tsx
- react-app-env.d.ts
- example.json
- products.json
- favicon.png
- logo.svg
- Button.cy.tsx
- Button.tsx
- Footer.cy.tsx
- Footer.tsx
- Input.cy.tsx
- Input.tsx
- LoginForm.cy.tsx
- LoginForm.tsx
- Logo.cy.tsx
- Logo.tsx
- PasswordInput.cy.tsx
- PasswordInput.tsx
- Spinner.cy.tsx
- Spinner.tsx
- example.json
- products.json
- Login.cy.tsx
- Login.tsx
- NotFound.cy.tsx
- NotFound.tsx
- ProductDetails.cy.tsx
- ProductDetails.tsx
- ProductsList.cy.tsx
- ProductsList.tsx
- products.ts
- store.ts
- formatCurrency.ts
- App.cy.tsx
- App.tsx
- main.tsx
- types.ts
- mouse-movement.js
- mouse.comp-spec.jsx
- different-element.comp-spec.jsx
- app.comp-spec.jsx
- App.css
- App.js
- loading-indicator.comp-spec.jsx
- LoadingIndicator.js
- logo.svg
- README.md
- Child.cy.tsx
- Child.tsx
- Grandparent.cy.tsx
- Grandparent.tsx
- Parent.cy.tsx
- Parent.tsx
- Child.cy.tsx
- Child.tsx
- Grandparent.cy.tsx
- Grandparent.tsx
- Parent.cy.tsx
- Parent.tsx
- store.ts
- clicker.comp-spec.jsx
- todo.comp-spec.jsx
- Todo.jsx
- todos.comp-spec.jsx
- Todos.jsx
- 1.comp-spec.jsx
- App.comp-spec.jsx
- App.jsx
- context.js
- Toolbar.jsx
- card-without-effect.comp-spec.jsx
- card-without-effect.jsx
- card.comp-spec.jsx
- card.jsx
- calculator.cy.jsx
- calculator.cy.tsx
- calculator.jsx
- calculator.tsx
- Dog.tsx
- lazy-loaded-suspense.comp-spec.tsx
- LazyComponent.tsx
- samoyed.jpg
- counter-useReducer.cy.tsx
- counter.tsx
- App.comp-spec.tsx
- document.comp-spec.tsx
- nice-state-action-example.cy.tsx
- nice-state-action-example.tsx
- ts.comp-spec.tsx
- App.comp-spec.jsx
- App.jsx
- lodash-fp.comp-spec.jsx
- loading-machine.cy.jsx
- promise-machine.cy.jsx
- styles.css
- toggle.cy.jsx
- sanity.spec.ts
- win-location-assign.spec.ts
- example.json
- products.json
- commands.ts
- component-index.html
- component.tsx
- e2e.ts
- index.d.ts
- tsconfig.json
- favicon.ico
- index.html
- logo192.png
- logo512.png
- manifest.json
- robots.txt
- App.css
- App.test.tsx
- App.tsx
- index.css
- index.tsx
- logo.svg
- react-app-env.d.ts
- reportWebVitals.ts
- setupTests.ts
- .env
- .gitignore
- .nvmrc
- .prettierrc
- cypress.config.ts
- index.html
- package.json
- README.md
- renovate.json
- tsconfig.json
- yarn.lock
// repository documentation
Was this content helpful?
(0 ratings)
