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

Add test cases #41

Merged
merged 60 commits into from
Nov 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
5fc3d2b
Add question service unit tests
xenosf Nov 6, 2024
5981276
Increase jest timeout
xenosf Nov 7, 2024
dc9604b
Add sign up/log in system test
xenosf Nov 7, 2024
72248f1
Prettify test
xenosf Nov 7, 2024
f19ba6c
Refactor utils
xenosf Nov 7, 2024
b4851c5
Clear db after each test
xenosf Nov 7, 2024
70f2b9c
Update question route unit tests
xenosf Nov 9, 2024
1cfc709
Add tests for complexity regex
xenosf Nov 9, 2024
ccaa34f
Fix route complexity/... not matching
xenosf Nov 9, 2024
2b6832a
Create way to clear db when testing; fixed test
xenosf Nov 9, 2024
3ff7317
Change 127.0.0.1 -> localhost
xenosf Nov 9, 2024
d7df641
Fix mongodb uri
xenosf Nov 9, 2024
62706d1
Add chat service test to ci
xenosf Nov 9, 2024
c2a8a20
Add test script to package.json
xenosf Nov 9, 2024
6067149
Test new object assignment
xenosf Nov 9, 2024
ac57b5a
Install jest for chat service
xenosf Nov 9, 2024
0699bfb
Add test for error
xenosf Nov 10, 2024
84939ea
Update system workflow options
xenosf Nov 10, 2024
c7a7d28
Update template env
xenosf Nov 10, 2024
5438676
Refactor utils and add more cases for sign up/login
xenosf Nov 10, 2024
6ebe715
Refactor with click
xenosf Nov 10, 2024
c4740f9
Add testing routes for question
xenosf Nov 10, 2024
452dd20
Refactor sign up and log in util
xenosf Nov 10, 2024
939aeee
Update package lock
xenosf Nov 12, 2024
64b4ea9
Update service names
xenosf Nov 12, 2024
591396e
Fix question test route
xenosf Nov 12, 2024
b5883e2
Add matching e2e test
xenosf Nov 12, 2024
14d71dc
Merge branch 'main' into test-cases
xenosf Nov 12, 2024
0685327
Clear user id on log out
xenosf Nov 12, 2024
1e0dcae
Add env to services
xenosf Nov 13, 2024
23f8295
Fix matching test & run tests sequentially
xenosf Nov 13, 2024
0c5acae
Add chat test
xenosf Nov 13, 2024
1f43337
Rename e2e test folder
xenosf Nov 13, 2024
3a28c3e
Remove unused timeout
xenosf Nov 13, 2024
e446376
Refactor
xenosf Nov 13, 2024
0270f07
Rename function
xenosf Nov 13, 2024
296ccf0
Add collaboration tests
xenosf Nov 13, 2024
fde3fd6
Refactor root URL
xenosf Nov 13, 2024
80d3bf5
Merge branch 'main' into test-cases
xenosf Nov 13, 2024
e3dee91
Add debug print
xenosf Nov 13, 2024
f10b9ab
Fix matching test
xenosf Nov 13, 2024
68e5d11
Refactor tests
xenosf Nov 13, 2024
7f59a16
Increase test timeout
xenosf Nov 13, 2024
c8ca563
Change testing question
xenosf Nov 13, 2024
8f74ec6
Add questions e2e test
xenosf Nov 13, 2024
6336bd1
Add driver sleep
xenosf Nov 13, 2024
ed9561c
Remove unused imports
xenosf Nov 13, 2024
7bbb17c
Increase memory for node
xenosf Nov 13, 2024
a5c1f92
Increase retry timeout
xenosf Nov 13, 2024
a015508
Escape out of dropdown
xenosf Nov 13, 2024
4781c4d
Increase mathcing test timeout
xenosf Nov 13, 2024
89d9941
Fix escape key press
xenosf Nov 13, 2024
2d32642
Add force quit flag
xenosf Nov 13, 2024
706a188
Add delay to allow pop up to hide
xenosf Nov 13, 2024
b1d2038
Merge branch 'main' into test-cases
xenosf Nov 13, 2024
84fa1d0
Delete useless test
xenosf Nov 13, 2024
681856c
Merge branch 'main' into test-cases
xenosf Nov 13, 2024
b7df37f
Temporarily disable matching-related e2e tests
xenosf Nov 13, 2024
7232baa
Remove unncecessary test
xenosf Nov 13, 2024
1ecfa2f
Add placeholder test
xenosf Nov 13, 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
Escape out of dropdown
  • Loading branch information
xenosf committed Nov 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit a0155088a11b263cf0d43cfa7f927a514dd8d7a2
3 changes: 2 additions & 1 deletion e2e/utils/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { By, until } = require("selenium-webdriver");
const { By, until, Key } = require("selenium-webdriver");
let {
findTextInputWithLabel,
findButtonContainingText,
@@ -121,6 +121,7 @@ const fillQuestionForm = async (driver, qn) => {
await driver.actions().sendKeys(linkField, qn.link).perform();
await click(complexitySelect);
await click(await findDropDownOption(driver, "complexity-select-label", qn.complexity));
await driver.actions().sendKeys(Key.ESC).perform();
};

module.exports.fillAddQuestionForm = async (driver, qn) => {
Loading