This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f219301
commit 99c0847
Showing
1 changed file
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
/// <reference types="Cypress" /> | ||
|
||
describe('Validate state selection options', () => { | ||
beforeEach('visit page', () => { | ||
cy.visit('localhost:1313') | ||
}) | ||
|
||
it('Test Alaska', () => { | ||
cy.get('[data-test="state-selection"]').select('Alaska') | ||
cy.get('[data-test="register-button"]').click() | ||
cy.url().should('include', '/register/ak/') | ||
}) | ||
|
||
it('Test American Samoa', () => { | ||
cy.get('[data-test="state-selection"]').select('American Samoa') | ||
cy.get('[data-test="register-button"]').click() | ||
cy.url().should('include', '/register/as/') | ||
}) | ||
|
||
it('Test Arkansas', () => { | ||
cy.get('[data-test="state-selection"]').select('Arkansas') | ||
cy.get('[data-test="register-button"]').click() | ||
cy.url().should('include', '/register/ar/') | ||
}) | ||
|
||
it('Test North Dakota', () => { | ||
cy.get('[data-test="state-selection"]').select('North Dakota') | ||
cy.get('[data-test="register-button"]').click() | ||
cy.url().should('include', '/register/nd/') | ||
}) | ||
|
||
}) | ||
// describe('Validate state selection options', () => { | ||
// beforeEach('visit page', () => { | ||
// cy.visit('localhost:1313') | ||
// }) | ||
// | ||
// it('Test Alaska', () => { | ||
// cy.get('[data-test="state-selection"]').select('Alaska') | ||
// cy.get('[data-test="register-button"]').click() | ||
// cy.url().should('include', '/register/ak/') | ||
// }) | ||
// | ||
// it('Test American Samoa', () => { | ||
// cy.get('[data-test="state-selection"]').select('American Samoa') | ||
// cy.get('[data-test="register-button"]').click() | ||
// cy.url().should('include', '/register/as/') | ||
// }) | ||
// | ||
// it('Test Arkansas', () => { | ||
// cy.get('[data-test="state-selection"]').select('Arkansas') | ||
// cy.get('[data-test="register-button"]').click() | ||
// cy.url().should('include', '/register/ar/') | ||
// }) | ||
// | ||
// it('Test North Dakota', () => { | ||
// cy.get('[data-test="state-selection"]').select('North Dakota') | ||
// cy.get('[data-test="register-button"]').click() | ||
// cy.url().should('include', '/register/nd/') | ||
// }) | ||
// | ||
// }) |