test: Cypress | Replacing external user api with TED mock api in OnLoadActions_Spec.ts (#31029)
## Description - This PR replaced external user api with TED mock api in ServerSide/OnLoadTests/OnLoadActions_Spec.ts #### Type of change - Script fix (non-breaking change which fixes an issue) ## Testing #### How Has This Been Tested? - [X] Cypress CI runs ## Checklist: #### QA activity: - [X] Added `Test Plan Approved` label after Cypress tests were reviewed <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added dynamic API URL handling in tests for more flexible test configurations. - Enhanced Right-to-Left (RTL) support testing for the Select Widget. - **Enhancements** - Improved test reliability by asserting element visibility and existence in various commands and methods. - Streamlined the login and logout process in tests by optimizing command implementations. - **Bug Fixes** - Fixed issues with test setup by removing unnecessary timeouts and refresh calls, enhancing test execution speed and reliability. - **Refactor** - Updated Cypress tests to toggle between running limited tests and all specs more efficiently. - Removed deprecated timeout parameters in favor of more reliable element visibility checks. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
parent
81ac8efaef
commit
fa0eda6229
|
|
@ -2,6 +2,7 @@ import {
|
||||||
agHelper,
|
agHelper,
|
||||||
apiPage,
|
apiPage,
|
||||||
assertHelper,
|
assertHelper,
|
||||||
|
dataManager,
|
||||||
deployMode,
|
deployMode,
|
||||||
entityExplorer,
|
entityExplorer,
|
||||||
entityItems,
|
entityItems,
|
||||||
|
|
@ -49,7 +50,7 @@ describe(
|
||||||
//apiPage.RunAPI();
|
//apiPage.RunAPI();
|
||||||
|
|
||||||
apiPage.CreateAndFillApi(
|
apiPage.CreateAndFillApi(
|
||||||
"https://randomuser.me/api/",
|
dataManager.dsValues[dataManager.defaultEnviorment].mockApiUrl,
|
||||||
"RandomUser",
|
"RandomUser",
|
||||||
30000,
|
30000,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -354,7 +354,6 @@ export class HomePage {
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
expect(response.status).equal(200); //Verifying logout is success
|
expect(response.status).equal(200); //Verifying logout is success
|
||||||
});
|
});
|
||||||
this.agHelper.CypressReload();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Signout(toNavigateToHome = true) {
|
public Signout(toNavigateToHome = true) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user