Skip to content

Commit

Permalink
Fix bad tests
Browse files Browse the repository at this point in the history
  • Loading branch information
weiyuan95 committed Nov 18, 2020
1 parent 4fb98b2 commit 3769859
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sadeaf-hasura/mockdata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ INSERT INTO assignment (
'1 Stanford Road', null, '123821', 'Haven 1A', 1.93821, 2.3247,
2, 100),

(13, 2, 'PENDING', CURRENT_TIMESTAMP + interval '192 hour', CURRENT_TIMESTAMP + interval '194 hour',
(13, 2, 'PENDING', CURRENT_TIMESTAMP + interval '4 day', CURRENT_TIMESTAMP + interval '194 hour',
'18 Cashew Ave', null, '123405', null, null, null,
null, 100),

Expand Down
4 changes: 2 additions & 2 deletions sadeaf-web/cypress/integration/client-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('Client Create New Assignment', () => {
beforeEach(() => {
enterClientHomepage();
// open calendar on 20th day
cy.get(':nth-child(4) > :nth-child(5) > .el-calendar-day').click();
cy.get(':nth-child(5) > :nth-child(5) > .el-calendar-day').click();
});

it('should error when submitting empty new assignment form', () => {
Expand Down Expand Up @@ -58,6 +58,6 @@ describe('Client Create New Assignment', () => {
.wait(4000)
.type('{downarrow}{enter}');
cy.get('.el-form-item__content > .el-button-group > :nth-child(1)').click();
cy.get(':nth-child(4) > :nth-child(5) > .el-calendar-day').contains('Some new assignment');
cy.get(':nth-child(5) > :nth-child(5) > .el-calendar-day').contains('Some new assignment');
});
});

0 comments on commit 3769859

Please sign in to comment.