## Description Re-wrote new test case. Fixes # https://app.zenhub.com/workspaces/stability-pod-6690c4814e31602e25cab7fd/issues/gh/appsmithorg/appsmith/38017 ## Automation /ok-to-test tags="@tag.Iframe" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/12197419550> > Commit: 5b0d7ad0a92123b412cb18c7b1814548f51e6ac4 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12197419550&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Iframe` > Spec: > <hr>Fri, 06 Dec 2024 11:07:20 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Enhanced testing suite for the Iframe widget, allowing for more specific interactions with multiple iframe instances. - Added a new test case to verify iframe behavior during property updates. - **Bug Fixes** - Updated iframe URL configurations to ensure correct redirection to the new documentation site. - **Documentation** - Introduced a new JSON structure for the Iframe widget, detailing properties and settings for improved user interaction. - **Chores** - Updated test specification paths to focus on the Iframe widget tests. - Modified common locators for improved navigation element targeting. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
171 lines
7.6 KiB
JSON
171 lines
7.6 KiB
JSON
{
|
|
"baseUrl": "http://host.docker.internal:5001/v1",
|
|
"methods": "/mock-api?records=10",
|
|
"headerKey": "Content-Type",
|
|
"headerValue": "application/json",
|
|
"headerValueBlank": " ",
|
|
"queryKey": "page",
|
|
"queryValue": "2",
|
|
"queryAndValue": "/mock-api?records=100",
|
|
"successStatusCode": "200 OK",
|
|
"failureStatusCode": "5000",
|
|
"responsetext": "Roger Brickelberr",
|
|
"pageResponsetext": "Josh M Krantz",
|
|
"apiname": "SecondAPI",
|
|
"baseUrl2": "https://reqres.in/",
|
|
"methods1": "api/users/1",
|
|
"responsetext2": "qui est esse",
|
|
"baseUrl3": "https://reqres.in/",
|
|
"methods2": "api/users/2",
|
|
"invalidPath": "api/users/invalid",
|
|
"responsetext3": "Josh M Krantz",
|
|
"postUrl": "https://reqres.in/",
|
|
"deleteUrl": "",
|
|
"Post": "POST",
|
|
"Delete": "DELETE",
|
|
"Patch": "PATCH",
|
|
"echoMethod": "/mock-api/echo",
|
|
"getAction": "//div[contains(@class, 'rc-select-item-option')]//div[contains(text(),'GET')]",
|
|
"putAction": "//div[contains(@class, 'rc-select-item-option')]//div[contains(text(),'PUT')]",
|
|
"postAction": "//div[contains(@class, 'rc-select-item-option')]//div[contains(text(),'POST')]",
|
|
"patchAction": "//div[contains(@class, 'rc-select-item-option')]//div[contains(text(),'PATCH')]",
|
|
"deleteAction": "//div[contains(@class, 'rc-select-item-option')]//div[contains(text(),'DELETE')]",
|
|
"moustacheMethod": "{{Api.text}}",
|
|
"nextUrl": "/mock-api?records=30&page=3&size=12",
|
|
"prevUrl": "/mock-api?records=30&page=1&size=12",
|
|
"methodsWithParam": "users?page=2",
|
|
"invalidHeader": "invalid",
|
|
"invalidValue": "invalid",
|
|
"Put": "PUT",
|
|
"Get": "GET",
|
|
"buttonName": "TestNew",
|
|
"next": "/mock-api?records=30&page=3&size=12",
|
|
"prev": "/mock-api?records=30&page=1&size=12",
|
|
"apiFormDataBodyType": "FORM_URLENCODED",
|
|
"apiFormDataHeaderValue": "application/x-www-form-urlencoded",
|
|
"apiMultipartBodyType": "multi-part",
|
|
"defaultMoustacheData": "{{Input1.text",
|
|
"defaultInputWidget": "{{Table1.selectedRow.id",
|
|
"sortedColumn": "{{Table1.sortOrder.column",
|
|
"deafultDropDownWidget": [
|
|
{
|
|
"label": "{{Table1.selectedRow.email}}",
|
|
"value": "VEG"
|
|
},
|
|
{
|
|
"label": "{{Table1.tableData[2].email}}",
|
|
"value": "NONVEG"
|
|
}
|
|
],
|
|
"defaultRichtextWidget": "{{Table1.selectedRow.userName",
|
|
"defaultDropDownValue": "1",
|
|
"defaultInputQuery": "{{Query1.data[0].id",
|
|
"defaultTableQuery": "{{Query1.data",
|
|
"labelFrmQuery": "{{Query1.data[0].name",
|
|
"command": "{command}{A}{del}",
|
|
"defaultdata": "TestData",
|
|
"input1": "(//div[@class='bp3-input-group']//input)[0]",
|
|
"input2": "(//div[@class='bp3-input-group']//input)[1]",
|
|
"input3": "(//div[@class='bp3-input-group']//input)[2]",
|
|
"videoUrl": "https://www.youtube.com/watch?v=S5musXykVs0",
|
|
"videoUrl2": "https://assets.appsmith.com/widgets/bird.mp4",
|
|
"audioUrl": "https://assets.appsmith.com/widgets/birds_chirping.mp3",
|
|
"TablePagination": [
|
|
{
|
|
"id": 2381224,
|
|
"email": "michael.lawson@reqres.in",
|
|
"userName": "Michael Lawson",
|
|
"productName": "Chicken Sandwich",
|
|
"orderAmount": 4.99
|
|
},
|
|
{
|
|
"id": 2736212,
|
|
"email": "lindsay.ferguson@reqres.in",
|
|
"userName": "Lindsay Ferguson",
|
|
"productName": "Tuna Salad",
|
|
"orderAmount": 9.99
|
|
},
|
|
{
|
|
"id": 6788734,
|
|
"email": "tobias.funke@reqres.in",
|
|
"userName": "Tobias Funke",
|
|
"productName": "Beef steak",
|
|
"orderAmount": 19.99
|
|
}
|
|
],
|
|
"addInputWidgetBinding": "{{Table1.selectedRow.id",
|
|
"externalPage": "https://www.appsmith.com/",
|
|
"loadashInput": "{{_.add(3,4)",
|
|
"momentInput": "{{moment(new Date).format('yyyy')",
|
|
"atobInput": "{{atob('QQ==')",
|
|
"btoaInput": "{{btoa('A')",
|
|
"defaultInputBinding": "{{Input2.text",
|
|
"tabBinding": "{{Tabs1.selectedTab",
|
|
"pageloadBinding": "{{PageLoadApi.data[1].id}}{{Input1.text}}",
|
|
"currentRowEmail": "{{currentRow.email}}",
|
|
"currentIndex": "{{currentIndex}}",
|
|
"currentRowOrderAmt": "{{currentRow.orderAmount}}",
|
|
"momentDate": "{{moment()}}",
|
|
"defaultRowIndexBinding": "{{Table1.selectedRowIndex",
|
|
"bindingAlign": "{{currentRow.userName.indexOf('Michael') > -1 ? 'LEFT' : 'RIGHT'}}",
|
|
"bindingSize": "{{currentRow.userName.indexOf('Michael') > -1 ? 'PARAGRAPH' : 'HEADING1'}}",
|
|
"bindingNewSize": "{{currentRow.userName.indexOf('Michael') > -1 ? '14px' : '24px'}}",
|
|
"bindingVerticalAlig": "{{currentRow.userName.indexOf('Michael') > -1 ? 'TOP' : 'BOTTOM'}}",
|
|
"bindingTextColor": "{{currentRow.userName.indexOf('Michael') > -1 ? 'GREEN' : 'RED'}}",
|
|
"bindingButton": "{{currentRow.userName.indexOf('Michael') > -1 ? 'Discount' : 'NoDiscount'}}",
|
|
"bindingStyle": "{{currentRow.userName.indexOf('Michael') > -1 ? 'BOLD' : 'ITALIC'}}",
|
|
"bindingGenAlign": "{{currentRow.userName.indexOf('Michael') > -1 ? 'RIGHT' : 'LEFT'}}",
|
|
"currentRowWithIdOutside": "#{{currentRow.email}}",
|
|
"currentRowWithIdInside": "{{\"#\" + currentRow.email}}",
|
|
"defaultdataBinding": "{'Test','This'}",
|
|
"dropdownErrorMsg": "This value does not evaluate to type Array<Object>",
|
|
"tableWidgetErrorMsg": "Invalid value. This field expects an array of objects(Array<Object>) or the result of a Query such as '{{query1.data}}'.",
|
|
"bindingDataPoint": "{{JSON.stringify(Chart1.selectedDataPoint)}}",
|
|
"bindingSeriesTitle": "{{Chart1.selectedDataPoint.seriesTitle",
|
|
"bindChartData": "{{Chart1.selectedDataPoint",
|
|
"appUrl": "https://oauth.mocklab.io/userinfo",
|
|
"clientID": "169444434892406",
|
|
"clientSecret": "505dac16a21681f277b5fde97445be18",
|
|
"accessTokenUrl": "https://oauth.mocklab.io/oauth/token",
|
|
"oauthResponse": "169444434892406",
|
|
"authorizationURL": "https://oauth.mocklab.io/oauth/authorize",
|
|
"oauth2Scopes": "testScopes",
|
|
"basicURl": "https://envyenksqii9nf3.m.pipedream.net",
|
|
"methodWithQueryParam": "/users?q=mimeType='application/vnd.google-apps.spreadsheet'",
|
|
"apiContentTypeNone": "tab--NONE",
|
|
"apiContentTypeRaw": "tab--RAW",
|
|
"apiContentTypeJson": "tab--JSON",
|
|
"apiContentTypeForm": "tab--FORM_URLENCODED",
|
|
"apiContentTypeMultiPart": "tab--MULTIPART_FORM_DATA",
|
|
"noBodyErrorMessageDiv": "#NoBodyMessageDiv",
|
|
"noBodyErrorMessage": "This request does not have a body",
|
|
"v2Key": "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",
|
|
"v3Key": "6LcnzQgfAAAAAMwMlQLppqx7STvZ6pZJoDMXti8k",
|
|
"invalidKey": "abc123",
|
|
"errorMsg": "Google reCAPTCHA token generation failed! Please check the reCAPTCHA site key.",
|
|
"treeTextBindingValue": "{{TreeSelect1.selectedOptionValue}}",
|
|
"multiSelectTextBindingValue": "{{MultiSelect1.selectedOptionValues}}",
|
|
"tabBindingValue": "{{Tabs1.selectedTab}}",
|
|
"tableBindingValue": "{{Table1.selectedRow.step}}",
|
|
"switchGroupBindingValue": "{{SwitchGroup1.selectedValues}}",
|
|
"switchBindingValue": "{{Switch1.selectedValue}}",
|
|
"selectBindingValue": "{{Select1.selectedOptionValue}}",
|
|
"currencyBindingValue": "{{CurrencyInput1.value}}",
|
|
"multitreeselectBindingValue": "{{MultiTreeSelect1.selectedOptionValues}}",
|
|
"radiogroupselectBindingValue": "{{RadioGroup1.selectedOptionValue}}",
|
|
"listBindingValue": "{{List1.selectedItem.id}}",
|
|
"ratingBindingValue": "{{Rating1.value}}",
|
|
"checkboxGroupBindingValue": "{{CheckboxGroup1.selectedValues}}",
|
|
"checkboxBindingValue": "{{Checkbox1.isChecked}}",
|
|
"audioRecorderBindingValue": "{{AudioRecorder1.isVisible}}",
|
|
"audioBindingValue": "{{Audio1.autoPlay}}",
|
|
"phoneBindingValue": "{{PhoneInput1.value}}",
|
|
"fileBindingValue": "{{FilePicker1.isDirty}}",
|
|
"UPGRADEUSERNAME": "arslan+upgrade160@appsmith.com",
|
|
"UPGRADEPASSWORD": "Test@123",
|
|
"APPURL": "http://localhost:8081/app/app1/page1-63d38854252ca15b7ec9fabb",
|
|
"iframeUrl": "https://docs.appsmith.com/build-apps/overview/",
|
|
"iframeUrlSubstring": "https://docs.appsmith.com/",
|
|
"iframeRandomUrl": "https://www.appsmith.com/"
|
|
}
|