-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
45 changed files
with
1,348 additions
and
435 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
describe('View LPA', () => { | ||
describe('when signed by donor', () => { | ||
beforeEach(() => { | ||
cy.visit('/fixtures?redirect=/view-lpa&progress=signTheLpa'); | ||
}); | ||
|
||
it('shows the actors', () => { | ||
cy.contains('Donor: Sam Smith'); | ||
cy.contains('Certificate provider: Charlie Cooper'); | ||
cy.contains('Attorney: Jessie Jones'); | ||
cy.contains('Attorney: Robin Redcar'); | ||
cy.contains('Replacement attorney: Blake Buckley'); | ||
cy.contains('Replacement attorney: Taylor Thompson'); | ||
cy.contains('Person to notify: Jordan Jefferson'); | ||
cy.contains('Person to notify: Danni Davies'); | ||
}); | ||
|
||
it('shows the decisions', () => { | ||
cy.contains('Whether or not I have mental capacity to make a particular decision myself'); | ||
cy.contains('Jointly and severally - your attorneys can make decisions both on their own or together'); | ||
cy.contains('All together, as soon as one of your attorneys can no longer act. They will be able to make decisions jointly and severally with any attorney who is continuing to act.'); | ||
cy.contains('My attorneys must not sell my home unless, in my doctor’s opinion, I can no longer live independently'); | ||
}); | ||
|
||
it('contains the donor signature', () => { | ||
cy.contains('Signed by Sam Smith on: 2 January 2023'); | ||
cy.contains('Witnessed by Charlie Cooper on: 2 January 2023'); | ||
}); | ||
|
||
it('does not contain other signatures', () => { | ||
cy.contains('Attorney signature').should('not.exist'); | ||
}); | ||
}); | ||
|
||
describe('when signed by everyone', () => { | ||
beforeEach(() => { | ||
cy.visit('/fixtures?redirect=/view-lpa&attorneys=trust-corporation&progress=submitted'); | ||
}); | ||
|
||
it('shows all signatures', () => { | ||
cy.contains('Signed by Sam Smith on: 2 January 2023'); | ||
cy.contains('Witnessed by Charlie Cooper on: 2 January 2023'); | ||
cy.contains('Signed by Charlie Cooper on: 5 January 2023'); | ||
cy.contains('Signed by Jessie Jones on: 12 January 2023'); | ||
cy.contains('Signed by Robin Redcar on: 12 January 2023'); | ||
cy.contains('Signed by A Sign on: 17 January 2023'); | ||
cy.contains('Signed by Blake Buckley on: 12 January 2023'); | ||
cy.contains('Signed by Taylor Thompson on: 12 January 2023'); | ||
}); | ||
}); | ||
}); |
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,11 @@ | ||
package actor | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestActorFullName(t *testing.T) { | ||
assert.Equal(t, "John Smith", Actor{FirstNames: "John", LastName: "Smith"}.FullName()) | ||
} |
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
Oops, something went wrong.