assertion type changed (#174)
Co-authored-by: Nandan Anantharamu <Nandan@thinkify.com>
This commit is contained in:
parent
45163c5f99
commit
adee90aee9
|
|
@ -24,7 +24,6 @@ describe("Test curl import flow", function() {
|
|||
cy.ResponseStatusCheck("200 OK");
|
||||
cy.get(ApiEditor.formActionButtons).should("be.visible");
|
||||
cy.get(ApiEditor.ApiDeleteBtn).click();
|
||||
cy.get(ApiEditor.ApiDeleteBtn).should("be.disabled");
|
||||
cy.wait("@deleteAction");
|
||||
cy.get("@deleteAction").then(response => {
|
||||
cy.expect(response.response.body.responseMeta.success).to.eq(true);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ describe("API Panel Test Functionality", function() {
|
|||
cy.CreateAPI("FirstAPI");
|
||||
cy.log("Creation of FirstAPI Action successful");
|
||||
cy.enterDatasourceAndPath(testdata.baseUrl, testdata.methods);
|
||||
cy.RunAPI();
|
||||
cy.SaveAndRunAPI();
|
||||
cy.ResponseStatusCheck(testdata.successStatusCode);
|
||||
cy.get(apiwidget.createApiOnSideBar)
|
||||
.first()
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ describe("Text-Table Binding Functionality", function() {
|
|||
.find(".tr")
|
||||
.then(listing => {
|
||||
const listingCount = listing.length.toString();
|
||||
cy.get(commonlocators.TextInside).should("have.text", listingCount);
|
||||
cy.get(commonlocators.TextInside).contains(listingCount);
|
||||
cy.EvaluateDataType("string");
|
||||
cy.EvaluateCurrentValue(listingCount);
|
||||
cy.PublishtheApp();
|
||||
|
|
@ -73,10 +73,7 @@ describe("Text-Table Binding Functionality", function() {
|
|||
.find(".tr")
|
||||
.then(listing => {
|
||||
const listingCountP = listing.length.toString();
|
||||
cy.get(commonlocators.TextInside).should(
|
||||
"have.text",
|
||||
listingCountP,
|
||||
);
|
||||
cy.get(commonlocators.TextInside).contains(listingCountP);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -96,14 +93,14 @@ describe("Text-Table Binding Functionality", function() {
|
|||
*/
|
||||
cy.readTabledata("1", "2").then(tabData => {
|
||||
const tabValue = `\"${tabData}\"`;
|
||||
cy.get(commonlocators.TextInside).should("have.text", tabValue);
|
||||
cy.get(commonlocators.TextInside).contains(tabValue);
|
||||
cy.EvaluateDataType("string");
|
||||
cy.EvaluateCurrentValue(tabValue);
|
||||
cy.PublishtheApp();
|
||||
cy.isSelectRow(1);
|
||||
cy.readTabledataPublish("1", "2").then(tabDataP => {
|
||||
const tabValueP = `\"${tabDataP}\"`;
|
||||
cy.get(commonlocators.TextInside).should("have.text", tabValueP);
|
||||
cy.get(commonlocators.TextInside).contains(tabValueP);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -691,6 +691,7 @@ Cypress.Commands.add("EvaluateDataType", dataType => {
|
|||
});
|
||||
|
||||
Cypress.Commands.add("EvaluateCurrentValue", currentValue => {
|
||||
cy.wait(2000);
|
||||
cy.get(commonlocators.evaluatedCurrentValue)
|
||||
.should("be.visible")
|
||||
.contains(currentValue);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user