Skip to content

Commit

Permalink
adding logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Naseem77 committed Jan 28, 2025
1 parent 0244c82 commit 338a4af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions e2e/logic/api/apiCalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default class ApiCalls {
async getSettingsRoleValue(roleName: string, data?: any): Promise<GetSettingsRoleValue> {
const result = await getRequest(urls.api.settingsConfig + roleName, data)
const jsonData = await result.json();
console.log("api calls res:", jsonData, " role: ", roleName);
return jsonData
}

Expand Down
5 changes: 4 additions & 1 deletion e2e/tests/settingsConfig.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ test.describe('Settings Tests', () => {
await settingsConfigPage.modifyRoleValue(roles.maxInfoQueries, "999")
await settingsConfigPage.refreshPage();
await settingsConfigPage.scrollToBottomInTable();
const res = await settingsConfigPage.getRoleContentValue(roles.maxInfoQueries);
console.log("ui value: ", res);

await new Promise(resolve => { setTimeout(resolve, 3000) });
const apiCall = new ApiCalls()
let value;
Expand All @@ -233,7 +236,7 @@ test.describe('Settings Tests', () => {
await new Promise(resolve => setTimeout(resolve, 1500));
}

console.log(value);
console.log("api value:", value);
expect(value).toBe("999");
await apiCall.modifySettingsRole(roles.maxInfoQueries, "1000");
});
Expand Down

0 comments on commit 338a4af

Please sign in to comment.