CSR-807 Add test todos for estimate
This commit is contained in:
parent
28b6524ac5
commit
edb0f8af66
1 changed files with 5 additions and 2 deletions
|
|
@ -49,19 +49,22 @@ describe("estimate.vue", () => {
|
|||
//Assert
|
||||
expect(arePagePrerequisitesValid).toBe(true);
|
||||
});
|
||||
test("isRepair is set to false, arePagePrerequisitesValid should return true", async () => {
|
||||
test("isRepair is set to true, arePagePrerequisitesValid should return true", async () => {
|
||||
|
||||
//Arrange
|
||||
const { wrapper } = setupMocks({});
|
||||
|
||||
//Act
|
||||
store.commit( storeMutations.UPDATE_IS_REPAIR, false );
|
||||
store.commit( storeMutations.UPDATE_IS_REPAIR, true );
|
||||
|
||||
let arePagePrerequisitesValid = wrapper.vm.arePagePrerequisitesValid();
|
||||
|
||||
//Assert
|
||||
expect(arePagePrerequisitesValid).toBe(true);
|
||||
});
|
||||
test.todo("isRepair is false and there are no lineItems => should return false")
|
||||
test.todo("isRepair is false and lineItems is null => should return false")
|
||||
test.todo("isRepair is false are there are lineItems => should return true")
|
||||
test("isRepair is set to null, arePagePrerequisitesValid should return false", async () => {
|
||||
|
||||
//Arrange
|
||||
|
|
|
|||
Loading…
Reference in a new issue