forked from ustaxcourt/ef-cms
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10228: Visit account creation page and fill out form; Added data test…
… id on the form for cypress;
- Loading branch information
John Cruz
committed
Jan 16, 2024
1 parent
6961c3e
commit 1723831
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 27 additions & 1 deletion
28
cypress/cypress-smoketests/integration/petitioner-account-creation.cy.ts
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,3 +1,29 @@ | ||
describe('Petitioner Account Creation', () => { | ||
it('should fill out the account creation form', () => {}); | ||
const GUID = Date.now(); | ||
const TEST_EMAIL = `cypress+${GUID}@test.com`; | ||
const TEST_NAME = 'Cypress Test'; | ||
const TEST_PASSWORD = 'aA1!aaaa'; | ||
describe('Create Petitioner Account', () => { | ||
beforeEach(() => { | ||
cy.visit('/create-account/petitioner'); | ||
}); | ||
|
||
it('should fill out the account creation form', () => { | ||
cy.get('[data-testid="petitioner-account-creation-email"]').type( | ||
TEST_EMAIL, | ||
); | ||
|
||
cy.get('[data-testid="petitioner-account-creation-name"]').type( | ||
TEST_NAME, | ||
); | ||
|
||
cy.get('[data-testid="petitioner-account-creation-password"]').type( | ||
TEST_PASSWORD, | ||
); | ||
|
||
cy.get( | ||
'[data-testid="petitioner-account-creation-confirm-password"]', | ||
).type(TEST_PASSWORD); | ||
}); | ||
}); | ||
}); |
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