chore: add cypress test case to validate port number placeholder (#25370)
This commit is contained in:
parent
4dd417a511
commit
99c87d1a78
|
|
@ -37,5 +37,89 @@ describe("Test placeholder value for port number for all datasources - tests #24
|
||||||
expectedPlaceholderValue,
|
expectedPlaceholderValue,
|
||||||
);
|
);
|
||||||
dataSources.SaveDSFromDialog(false);
|
dataSources.SaveDSFromDialog(false);
|
||||||
|
|
||||||
|
// MySQL
|
||||||
|
dataSources.NavigateToDSCreateNew();
|
||||||
|
dataSources.CreatePlugIn("MySQL");
|
||||||
|
|
||||||
|
expectedPlaceholderValue = "3306";
|
||||||
|
agHelper.AssertAttribute(
|
||||||
|
dataSources._port,
|
||||||
|
"placeholder",
|
||||||
|
expectedPlaceholderValue,
|
||||||
|
);
|
||||||
|
dataSources.SaveDSFromDialog(false);
|
||||||
|
|
||||||
|
// Postgres
|
||||||
|
dataSources.NavigateToDSCreateNew();
|
||||||
|
dataSources.CreatePlugIn("PostgreSQL");
|
||||||
|
|
||||||
|
expectedPlaceholderValue = "5432";
|
||||||
|
agHelper.AssertAttribute(
|
||||||
|
dataSources._port,
|
||||||
|
"placeholder",
|
||||||
|
expectedPlaceholderValue,
|
||||||
|
);
|
||||||
|
dataSources.SaveDSFromDialog(false);
|
||||||
|
|
||||||
|
// MongoDB
|
||||||
|
dataSources.NavigateToDSCreateNew();
|
||||||
|
dataSources.CreatePlugIn("MongoDB");
|
||||||
|
|
||||||
|
expectedPlaceholderValue = "27017";
|
||||||
|
agHelper.AssertAttribute(
|
||||||
|
dataSources._port,
|
||||||
|
"placeholder",
|
||||||
|
expectedPlaceholderValue,
|
||||||
|
);
|
||||||
|
dataSources.SaveDSFromDialog(false);
|
||||||
|
|
||||||
|
// Elasticsearch
|
||||||
|
dataSources.NavigateToDSCreateNew();
|
||||||
|
dataSources.CreatePlugIn("Elasticsearch");
|
||||||
|
|
||||||
|
expectedPlaceholderValue = "9200";
|
||||||
|
agHelper.AssertAttribute(
|
||||||
|
dataSources._port,
|
||||||
|
"placeholder",
|
||||||
|
expectedPlaceholderValue,
|
||||||
|
);
|
||||||
|
dataSources.SaveDSFromDialog(false);
|
||||||
|
|
||||||
|
// Redis
|
||||||
|
dataSources.NavigateToDSCreateNew();
|
||||||
|
dataSources.CreatePlugIn("Redis");
|
||||||
|
|
||||||
|
expectedPlaceholderValue = "6379";
|
||||||
|
agHelper.AssertAttribute(
|
||||||
|
dataSources._port,
|
||||||
|
"placeholder",
|
||||||
|
expectedPlaceholderValue,
|
||||||
|
);
|
||||||
|
dataSources.SaveDSFromDialog(false);
|
||||||
|
|
||||||
|
// Redshift
|
||||||
|
dataSources.NavigateToDSCreateNew();
|
||||||
|
dataSources.CreatePlugIn("Redshift");
|
||||||
|
|
||||||
|
expectedPlaceholderValue = "5439";
|
||||||
|
agHelper.AssertAttribute(
|
||||||
|
dataSources._port,
|
||||||
|
"placeholder",
|
||||||
|
expectedPlaceholderValue,
|
||||||
|
);
|
||||||
|
dataSources.SaveDSFromDialog(false);
|
||||||
|
|
||||||
|
// ArangoDB
|
||||||
|
dataSources.NavigateToDSCreateNew();
|
||||||
|
dataSources.CreatePlugIn("ArangoDB");
|
||||||
|
|
||||||
|
expectedPlaceholderValue = "8529";
|
||||||
|
agHelper.AssertAttribute(
|
||||||
|
dataSources._port,
|
||||||
|
"placeholder",
|
||||||
|
expectedPlaceholderValue,
|
||||||
|
);
|
||||||
|
dataSources.SaveDSFromDialog(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user