mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-24 15:07:23 +00:00
* Add cypress realevents to cypress * Add constants and selectors * Add and modify utils * Add spec changes
14 lines
474 B
JavaScript
14 lines
474 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)
|
|
.should("be.visible")
|
|
.invoke("text")
|
|
.contain(dangerText);
|
|
};
|