Skip to content

Commit

Permalink
fix: update placeholder text for port numbers in datasource form (app…
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitsum authored Jul 6, 2023
1 parent 5ef23fc commit 37e4154
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { agHelper, dataSources } from "../../../support/Objects/ObjectsCore";

describe("Test placeholder value for port number for all datasources - tests #24960", () => {
it("1. Test datasource port number placeholder", () => {
// MsSQL
dataSources.NavigateToDSCreateNew();
dataSources.CreatePlugIn("Microsoft SQL Server");

let expectedPlaceholderValue = "1433";
agHelper.AssertAttribute(
dataSources._port,
"placeholder",
expectedPlaceholderValue,
);
dataSources.SaveDSFromDialog(false);

// Oracle
dataSources.NavigateToDSCreateNew();
dataSources.CreatePlugIn("Oracle");

expectedPlaceholderValue = "1521";
agHelper.AssertAttribute(
dataSources._port,
"placeholder",
expectedPlaceholderValue,
);
dataSources.SaveDSFromDialog(false);

// SMTP
dataSources.NavigateToDSCreateNew();
dataSources.CreatePlugIn("SMTP");

expectedPlaceholderValue = "25";
agHelper.AssertAttribute(
dataSources._port,
"placeholder",
expectedPlaceholderValue,
);
dataSources.SaveDSFromDialog(false);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"configProperty": "datasourceConfiguration.endpoints[*].port",
"dataType": "NUMBER",
"controlType": "KEYVALUE_ARRAY",
"placeholderText": "1443"
"placeholderText": "1433"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"configProperty": "datasourceConfiguration.endpoints[*].port",
"dataType": "NUMBER",
"controlType": "KEYVALUE_ARRAY",
"placeholderText": "6003"
"placeholderText": "1521"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"configProperty": "datasourceConfiguration.endpoints[*].port",
"dataType": "NUMBER",
"controlType": "KEYVALUE_ARRAY",
"placeholderText": "587"
"placeholderText": "25"
}
]
}
Expand Down

0 comments on commit 37e4154

Please sign in to comment.