Skip to content

Commit

Permalink
Move step definitions to shared support folder
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelschneiderman committed Mar 13, 2024
1 parent 3090858 commit 253edf4
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .cypress-cucumber-preprocessorrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"stepDefinitions": [
"cypress/cypress-integration/support/stepDefinitions/**/*.{js,ts}"
"cypress/support/stepDefinitions/**/*.{js,ts}"
]
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Given } from '@badeball/cypress-cucumber-preprocessor';
import { createAPetitioner } from '../../../../helpers/create-a-petitioner';
import { createAPetitioner } from '../../../helpers/create-a-petitioner';
import { faker } from '@faker-js/faker';
import { getCypressEnv } from '../../../../helpers/env/cypressEnvironment';
import { verifyPetitionerAccount } from '../../../../helpers/verify-petitioner-account';
import { getCypressEnv } from '../../../helpers/env/cypressEnvironment';
import { verifyPetitionerAccount } from '../../../helpers/verify-petitioner-account';

Given('I create a new petitioner account for {string}', (username: string) => {
const password = getCypressEnv().defaultAccountPass;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DEFAULT_FORGOT_PASSWORD_CODE } from '../../../../support/cognito-login';
import { DEFAULT_FORGOT_PASSWORD_CODE } from '../../cognito-login';
import { Given, Then, When } from '@badeball/cypress-cucumber-preprocessor';
import { v4 } from 'uuid';
import { verifyPasswordRequirements } from '../../../../helpers/auth/verify-password-requirements';
import { verifyPasswordRequirements } from '../../../helpers/auth/verify-password-requirements';

Given('I visit forgot password page', () => {
cy.visit('/login');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
When,
//defineParameterType,
} from '@badeball/cypress-cucumber-preprocessor';
import { logout } from '../../../../helpers/auth/logout';
import { logout } from '../../../helpers/auth/logout';

// const users = [
// 'petitionsclerk',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
import { createAndServePaperPetition } from '../../../helpers/create-and-serve-paper-petition';
import { createAndServePaperPetition } from '../../helpers/create-and-serve-paper-petition';

Given(
'I create and serve a paper petition and grant e-access for practitioner as {string}',
Expand Down
File renamed without changes.

0 comments on commit 253edf4

Please sign in to comment.