Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 99c9020

Browse files
author
Pablo Huerta
committed
Renamed wrong email test
1 parent 9b3c982 commit 99c9020

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

cypress/integration/app-contact.spec.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
describe('Contact Page', function() {
1+
describe('Contact Page', function () {
22
describe('The contact form displays with all fields', () => {
3-
it('Check that the form displays', function() {
3+
it('Check that the form displays', function () {
44
cy.visit('localhost:3333/contact');
55
cy.get('#second-content')
66
.contains('Get in Touch')
@@ -31,7 +31,7 @@ describe('Contact Page', function() {
3131
});
3232

3333
describe('User is able to successfully submit a contact form & view the successful submission animation', () => {
34-
it('Check that the form fades and appears the animation', function() {
34+
it('Check that the form fades and appears the animation', function () {
3535
cy.visit('localhost:3333/contact');
3636
cy.get('input[name=name]').type('Tester');
3737
cy.get('input[name=email]').type('Test@openforge.io');
@@ -44,7 +44,7 @@ describe('Contact Page', function() {
4444
});
4545

4646
describe('User is not able to submit a contact form with a empty full name field', () => {
47-
it('Check that the submit is disabled', function() {
47+
it('Check that the submit is disabled', function () {
4848
cy.visit('localhost:3333/contact');
4949
cy.get('input[name=email]').type('Test@openforge.io');
5050
cy.get('input[name=phone]').type('3333333333');
@@ -56,7 +56,7 @@ describe('Contact Page', function() {
5656
});
5757

5858
describe('User is not able to submit a contact form with a empty email field', () => {
59-
it('Check that the submit is disabled', function() {
59+
it('Check that the submit is disabled', function () {
6060
cy.visit('localhost:3333/contact');
6161
cy.get('input[name=name]').type('Tester');
6262
cy.get('input[name=phone]').type('3333333333');
@@ -67,11 +67,11 @@ describe('Contact Page', function() {
6767
});
6868
});
6969

70-
describe('User is not able to submit a contact form with a empty email field', () => {
71-
it('Check that the submit is disabled', function() {
70+
describe('User is not able to submit a contact form with a invalid email address', () => {
71+
it('Check that the submit is disabled', function () {
7272
cy.visit('localhost:3333/contact');
7373
cy.get('input[name=name]').type('Tester');
74-
cy.get('input[name=email]').type('wrong_email');
74+
cy.get('input[name=email]').type('Test@openforge@io');
7575
cy.get('input[name=phone]').type('3333333333');
7676
cy.get('input[name=message]').type('Testing');
7777
cy.get('button[type=submit]')
@@ -81,7 +81,7 @@ describe('Contact Page', function() {
8181
});
8282

8383
describe('The mailbox icon displays on the right hand side of the contact form', () => {
84-
it('Check that the img exists', function() {
84+
it('Check that the img exists', function () {
8585
cy.visit('localhost:3333/contact');
8686
cy.get('[data-cy=mailbox-img]')
8787
.should('exist')
@@ -90,7 +90,7 @@ describe('Contact Page', function() {
9090
});
9191

9292
describe('User is not able to submit the contact form after clearing all of the fields', () => {
93-
it('Check that the submit is disabled after clearing form', function() {
93+
it('Check that the submit is disabled after clearing form', function () {
9494
cy.visit('localhost:3333/contact');
9595
cy.get('input[name=name]').type('Tester');
9696
cy.get('input[name=name]').clear();
@@ -107,7 +107,7 @@ describe('Contact Page', function() {
107107
});
108108

109109
describe('User is unable to submit a empty contact form', () => {
110-
it('Check that the button is disabled', function() {
110+
it('Check that the button is disabled', function () {
111111
cy.visit('localhost:3333/contact');
112112
cy.get('button[type=submit]')
113113
.should('exist')

0 commit comments

Comments
 (0)