Skip to content

Commit 129871b

Browse files
avanslaarsbrian-mann
authored andcommitted
Adding form submission video page to the tutorial (#219)
* Adding form submission video page to the tutorial * Renamed form sub file to be less generic
1 parent 39cec5e commit 129871b

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

source/_data/sidebar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ tutorials:
152152
introduction-to-tutorials: introduction-to-tutorials.html
153153
project-setup: project-setup.html
154154
testing-inputs: testing-inputs.html
155+
react-todo-form-submission: react-todo-form-submission.html
155156

156157
examples:
157158
recipes:

source/tutorials/test-a-react-todo-app/introduction-to-tutorials.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ We have a lot of ground to cover, so let's get started!
1717
| -- | -- |
1818
| 1. {% url "Project setup" project-setup %} | {% fa fa-video-camera %} 3:52 |
1919
| 2. {% url "Testing inputs" testing-inputs %} | {% fa fa-video-camera %} 7:17 |
20-
| More tutorials to come! | |
20+
| 3. {% url "Form submission and XHR stubbing" react-todo-form-submission %} | {% fa fa-video-camera %} 10:21 |
21+
| More tutorials to come! |   |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Testing form submission
3+
comments: false
4+
layout: video
5+
containerClass: tutorial
6+
---
7+
8+
{% video 241063147 %}
9+
10+
## What's covered
11+
12+
We will implement form submission for our todo app, leveraging {% url `cy.server()` server %} and {% url `cy.route()` route %} to stub calls to our API. We will iterate on our test and implementation, focusing on the application's "happy path" first. Once our form is working, we'll use another stubbed XHR call to setup a failure scenario and implement the code to properly display an error message.

themes/cypress/languages/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ sidebar:
176176
introduction-to-tutorials: Introduction
177177
project-setup: Project setup
178178
testing-inputs: Testing text inputs
179+
react-todo-form-submission: Testing form submission
179180
examples:
180181
recipes: Recipes
181182
unit-testing-recipe: Unit Testing

0 commit comments

Comments
 (0)