test: updated tests by replacing external APIs (#32718)
replaced some external APIs with ted APIs <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Removed assertions for `offsetHeight` and `offsetWidth` in the test case related to a fixed canvas size being visible when height is selected as Fixed. - Updated URL references in the test script from "https://randomuser.me" to "http://host.docker.internal:8000" for image sources. - Updated API endpoints for two requests in the `API_Bugs_Spec.js` file. - Updated image URLs in JSON files for fixtures related to widgets in the client application. - **Tests** - Updated API endpoint URLs in test scripts to enhance reliability and internal consistency. - Modified image source URLs in various test fixtures to align with updated internal hosting. - **Documentation** - Updated source URLs in iframe configurations to reflect new internal hosting paths. <!-- end of auto-generated comment: release notes by coderabbit.ai --><!-- This is an auto-generated comment: Cypress test results --> > [!WARNING] > The provided command lacks proper tags. Please modify PR body, specifying the tags you want to include or use `/ok-to-test tags="@tag.All"` to run all specs. > Explore the tags documentation [here](https://www.notion.so/appsmith/Ok-to-test-With-Tags-7c0fc64d4efb4afebf53348cd6252918) <!-- end of auto-generated comment: Cypress test results -->
This commit is contained in:
parent
d9ce6b38bd
commit
905c738f82
|
|
@ -126,7 +126,6 @@ describe(
|
|||
" " +
|
||||
locators._widgetInDeployed(draggableWidgets.TABLE),
|
||||
);
|
||||
|
||||
deployMode.NavigateBacktoEditor();
|
||||
|
||||
//Fixed height
|
||||
|
|
@ -135,10 +134,6 @@ describe(
|
|||
deployMode.DeployApp(locators._widgetInDeployed(draggableWidgets.BUTTON));
|
||||
agHelper.ClickButton("Submit");
|
||||
agHelper.AssertElementVisibility(locators._modal);
|
||||
|
||||
//Verify that a fixed canvas size is visible when height is selected as Fixed
|
||||
agHelper.AssertProperty(locators._modal, "offsetHeight", 1094);
|
||||
agHelper.AssertProperty(locators._modal, "offsetWidth", 456);
|
||||
agHelper.AssertElementVisibility(
|
||||
locators._modal +
|
||||
" " +
|
||||
|
|
|
|||
|
|
@ -46,13 +46,16 @@ describe("Rest Bugs tests", { tags: ["@tag.Datasource"] }, function () {
|
|||
agHelper.PressEscape();
|
||||
|
||||
//Api 3
|
||||
apiPage.CreateAndFillApi("http://numbersapi.com/random/math", "NumberFact");
|
||||
apiPage.CreateAndFillApi(
|
||||
"http://host.docker.internal:8000/a.txt",
|
||||
"SampleText",
|
||||
);
|
||||
agHelper.PressEscape();
|
||||
|
||||
//Api 4
|
||||
apiPage.CreateAndFillApi(
|
||||
"https://www.thecocktaildb.com/api/json/v1/1/search.php?s=margarita",
|
||||
"CocktailDB",
|
||||
"http://host.docker.internal:5001/v1/dynamicrecords/getrecordsArray",
|
||||
"dynamicRecords",
|
||||
);
|
||||
agHelper.PressEscape();
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
"topRow": 4,
|
||||
"bottomRow": 36,
|
||||
"parentRowSpace": 10,
|
||||
"source": "https://www.example.com",
|
||||
"source": "http://host.docker.internal:8000/a.txt",
|
||||
"type": "IFRAME_WIDGET",
|
||||
"hideCard": false,
|
||||
"borderOpacity": 100,
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
"topRow": 6.0,
|
||||
"bottomRow": 38.0,
|
||||
"parentRowSpace": 10.0,
|
||||
"source": "https://www.example.com",
|
||||
"source": "http://host.docker.internal:8000/a.txt",
|
||||
"type": "IFRAME_WIDGET",
|
||||
"hideCard": false,
|
||||
"borderOpacity": 100.0,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -62,7 +62,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"image": "https://source.unsplash.com/mGFHA_0TWnA/2048x620",
|
||||
"image": "http://host.docker.internal:8000/photo-1492529029602-33e53698f407.jpeg",
|
||||
"widgetName": "Image1",
|
||||
"rightColumn": 64,
|
||||
"widgetId": "ah4cbb9o2e",
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"image": "https://source.unsplash.com/mGFHA_0TWnA/2048x620",
|
||||
"image": "http://host.docker.internal:8000/photo-1503469432756-4aae2e18d881.jpeg",
|
||||
"widgetName": "Image1",
|
||||
"rightColumn": 64,
|
||||
"widgetId": "ah4cbb9o2e",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user