Skip to content

Commit 5b60a87

Browse files
Refactor AuthService to use Axios instead of HTTP module (#1063)
* Refactor AuthService to use Axios instead of HTTP module * Update authService.ts * fix unit test * Replace HEAD with GET & improve success message * Update unit test with GET request * update success message * Add label for API Key input field * fix test --------- Co-authored-by: greensd4 <[email protected]> Co-authored-by: greensd4 <[email protected]>
1 parent c4d250c commit 5b60a87

File tree

6 files changed

+234
-212
lines changed

6 files changed

+234
-212
lines changed

package-lock.json

Lines changed: 47 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@
919919
},
920920
"devDependencies": {
921921
"@istanbuljs/nyc-config-typescript": "^1.0.2",
922+
"@types/axios": "^0.9.36",
922923
"@types/chai": "4.3.11",
923924
"@types/mocha": "10.0.6",
924925
"@types/node": "^22.9.0",
@@ -944,6 +945,7 @@
944945
"webpack-cli": "^5.1.4"
945946
},
946947
"dependencies": {
948+
"axios": "^1.8.3",
947949
"@checkmarxdev/ast-cli-javascript-wrapper": "0.0.127",
948950
"copyfiles": "2.4.1",
949951
"dotenv": "^16.4.7",

src/e2e/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function waitForElementToAppear(
1919
}
2020
}
2121

22-
export async function waitForInputBoxToOpen(maxRetries = 20, retryDelay = 500) {
22+
export async function waitForInputBoxToOpen(maxRetries = 30, retryDelay = 800) {
2323
for (let i = 0; i < maxRetries; i++) {
2424
try {
2525
const input = await InputBox.create();

0 commit comments

Comments
 (0)