Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update placeholder text for port numbers in datasource form #24961

Merged
merged 8 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { agHelper, dataSources } from "../../../support/Objects/ObjectsCore";

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

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

it("2. Test Oracle plugin datasource port number placeholder", () => {
dataSources.NavigateToDSCreateNew();
dataSources.CreatePlugIn("Oracle");

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

it("3. Test SMTP plugin datasource port number placeholder", () => {
dataSources.NavigateToDSCreateNew();
dataSources.CreatePlugIn("SMTP");

const 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