-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24293 - verify auth access to entity (#66)
* 24293 - feature: add verification and redirect on page access for forbidden entities. * 24293 - tests: refactor tests; add tests; add interface types for commands. * 24293 - tests:updating tests that are failing. * 24293 - chore: eslint * pr fixes. * fix: remove dev/testing check to hardcoded redirect. * tryin' to fix test not working in PR.
- Loading branch information
Showing
18 changed files
with
320 additions
and
69 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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// cypress/support/index.ts | ||
import { ApiResponseFilingI } from '../../src/interfaces/filing-i' | ||
import { BusinessI } from '../../src/interfaces/business-i' | ||
|
||
declare global { | ||
namespace Cypress { | ||
interface Chainable { | ||
interceptBusinessInfo (identifier: string, legalType: string, isHistorical?: boolean): Chainable<null>, | ||
|
||
interceptBusinessInfoFor (business: BusinessI): Chainable<null>, | ||
|
||
interceptBusinessContact (identifier: string, legalType: string): Chainable<null>, | ||
|
||
interceptAffiliationRequests ( | ||
hasAffiliationInvitations: boolean, hasAffiliationInvitationError: boolean): Chainable<null>, | ||
|
||
interceptAddresses (legalType: string): Chainable<null>, | ||
|
||
interceptParties (legalType: string, hasCustodian: boolean): Chainable<null>, | ||
|
||
interceptPayApiResponse (code: string): Chainable<null>, | ||
|
||
interceptTasks (fixture: string): Chainable<null>, | ||
|
||
interceptFilingHistory (businessIdentifier: string, filings: ApiResponseFilingI[]): Chainable<null>, | ||
|
||
interceptAuthorizations (businessIdentifier: string): Chainable<null>, | ||
|
||
visitBusinessDash ( | ||
identifier?: string, | ||
legalType?: string, | ||
isHistorical?: boolean, | ||
hasAffiliationInvitations?: boolean, | ||
hasAffiliationInvitationError?: boolean, | ||
taskFixture?: string | ||
): Chainable, | ||
|
||
visitBusinessDashFor ( | ||
path: string, | ||
identifier?: string, | ||
hasAffiliationInvitations?: boolean, | ||
hasAffiliationInvitationError?: boolean, | ||
taskFixture?: string, | ||
filings?: ApiResponseFilingI[], | ||
asStaff?: boolean | ||
): Chainable, | ||
|
||
visitTempBusinessDash (draftFiling?: unknown, asStaff?: boolean): Chainable | ||
|
||
visitBusinessDashAuthError (identifier?: string, legalType?: string, errorType?: string): Chainable | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.