Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ The module challenge is the afternoon project or assignment that students work t

## Single Page Applications

so im starting this at 1am

## Cypress.io

## Objectives
Expand All @@ -28,25 +30,25 @@ This project is a continuation of the work you have done previously.
- [ ] Install Cypress with npm.
`npm install cypress --save-dev`
- [ ] run `npx cypress open`, After a moment, the Cypress Test Runner will launch.
- [ ] Locate the integration folder at cypress/integration in your code editor
- [ ] Create a form_test.js file.
- [ ] Watch the Cypress Test Runner update the list of specs.
- [ ] Locate the integration folder at cypress/integration in your code editor
- [ ] Create a form_test.js file.
- [ ] Watch the Cypress Test Runner update the list of specs.
- [ ] Launch Cypress in interactive mode.
*Note:*

_Note:_
You will see an error that says "No tests found in your file:" with your particular file path. This is because we have not written any tests yet. Now you will start writing tests.

### Task 2a: Write and Run Tests (MVP)

In order to complete this challenge you will need to write and run the following tests. They do *not* need to pass, so long as the reasons they are failing is legitimate.
In order to complete this challenge you will need to write and run the following tests. They do _not_ need to pass, so long as the reasons they are failing is legitimate.

Set up tests that will...

- [ ] Get the `Name` input and type a name in it.
- [ ] Use an assertion to check if the text inputted contains the name you provided (Hint: use the .should assertion)
- [ ] Get the `Email` input and type an email address in it
- [ ] Get the `Name` input and type a name in it.
- [ ] Use an assertion to check if the text inputted contains the name you provided (Hint: use the .should assertion)
- [ ] Get the `Email` input and type an email address in it
- [ ] Get the `password` input and type a password in it
- [ ] Set up a test that will check to see if a user can check the terms of service box
- [ ] Set up a test that will check to see if a user can check the terms of service box
- [ ] Check to see if a user can submit the form data
- [ ] Check for form validation if an input is left empty

Expand All @@ -58,9 +60,9 @@ If you have time, write and run different tests based on common issues you have

**What if not all of my tests pass?**

*Depending on the quality of your code from previous lessons, your tests might not pass. That is quite alright! The purpose of this project is to design tests that point out errors. As such, you just need to be sure that the tests are failing because of issues with your web page code, not issues with your test code.*
_Depending on the quality of your code from previous lessons, your tests might not pass. That is quite alright! The purpose of this project is to design tests that point out errors. As such, you just need to be sure that the tests are failing because of issues with your web page code, not issues with your test code._

****
---

## Resources

Expand All @@ -70,4 +72,4 @@ If you have time, write and run different tests based on common issues you have

## Submission Format

* [ ] Submit a Pull-Request to merge `<firstName-lastName>` Branch into `main` (student's Repo). **Please don't merge your own pull request**
- [ ] Submit a Pull-Request to merge `<firstName-lastName>` Branch into `main` (student's Repo). **Please don't merge your own pull request**