mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-23 22:47:28 +00:00
15 lines
464 B
JavaScript
15 lines
464 B
JavaScript
|
|
import { postgreSqlSelector } from "Selectors/postgreSql";
|
||
|
|
import { postgreSqlText } from "Texts/postgreSql";
|
||
|
|
|
||
|
|
export const verifyCouldnotConnectWithAlert = (dangerText) => {
|
||
|
|
cy.get(postgreSqlSelector.connectionFailedText, {
|
||
|
|
timeout: 10000,
|
||
|
|
}).verifyVisibleElement("have.text", postgreSqlText.couldNotConnect, {
|
||
|
|
timeout: 5000,
|
||
|
|
});
|
||
|
|
cy.get(postgreSqlSelector.dangerAlertNotSupportSSL).verifyVisibleElement(
|
||
|
|
"contain.text",
|
||
|
|
dangerText
|
||
|
|
);
|
||
|
|
};
|