Skip to content

Commit

Permalink
Merge pull request CS3219-AY2324S1#97 from Chustinjeng/fix_cypress_bug
Browse files Browse the repository at this point in the history
Fix bugs
  • Loading branch information
Chustinjeng authored Nov 14, 2023
2 parents e8f0345 + 1ea0f70 commit 2645d3f
Show file tree
Hide file tree
Showing 19 changed files with 3,639 additions and 222 deletions.
Binary file removed .DS_Store
Binary file not shown.
10 changes: 5 additions & 5 deletions .github/workflows/question-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
- name: Install Dependencies
working-directory: ./src/backend/question_backend
run: npm i
- name: Install typescript
working-directory: ./src/cypress
run: npm install --save-dev typescript
- name: Install typescript and cypress
working-directory: .
run: npm install --save-dev typescript & npm install --save-dev cypress
- name: Run test cases
working-directory: ./src
run: node backend/question_backend/index.js & npx cypress run --spec "cypress/e2e/question_api.cy.js"
working-directory: .
run: node src/backend/question_backend/index.js & npx cypress run --spec "cypress/e2e/question_service.cy.js"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules/
src/backend/question_backend/.env
.env
docker-compose.yml
cypress/screenshots
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ describe("check if the test question is still there", () => {
expect(data.exists).to.be.equal(false);
});
});
});
});
3 changes: 1 addition & 2 deletions src/cypress/e2e/spec.cy.js → cypress/e2e/spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ describe('template spec', () => {
it('passes', () => {
cy.visit('https://example.cypress.io')
})
})

})
File renamed without changes.
Loading

0 comments on commit 2645d3f

Please sign in to comment.