Changed the widget used for search in the test (#406)
This commit is contained in:
parent
f5f65dd89e
commit
01f6393189
|
|
@ -1,11 +1,6 @@
|
|||
const commonlocators = require("../../../locators/commonlocators.json");
|
||||
const dsl = require("../../../fixtures/commondsl.json");
|
||||
const widgetsPage = require("../../../locators/Widgets.json");
|
||||
const testdata = require("../../../fixtures/testdata.json");
|
||||
const pages = require("../../../locators/Pages.json");
|
||||
const dsl = require("../../../fixtures/displayWidgetDsl.json");
|
||||
const apiwidget = require("../../../locators/apiWidgetslocator.json");
|
||||
const explorer = require("../../../locators/explorerlocators.json");
|
||||
const pageid = "MyPage";
|
||||
|
||||
describe("Entity explorer tests related to widgets and validation", function() {
|
||||
beforeEach(() => {
|
||||
|
|
@ -13,31 +8,26 @@ describe("Entity explorer tests related to widgets and validation", function() {
|
|||
});
|
||||
|
||||
it("Widget edit/delete/copy to clipboard validation", function() {
|
||||
cy.openPropertyPane("textwidget");
|
||||
cy.widgetText("Api", widgetsPage.textWidget, widgetsPage.textInputval);
|
||||
cy.testCodeMirror("/api/users/2");
|
||||
cy.NavigateToEntityExplorer();
|
||||
cy.wait(5000);
|
||||
cy.SearchEntityandOpen("Api");
|
||||
cy.SearchEntityandOpen("Text1");
|
||||
cy.get(explorer.collapse)
|
||||
.last()
|
||||
.click({ force: true });
|
||||
cy.get(explorer.property)
|
||||
.last()
|
||||
.click({ force: true });
|
||||
cy.wait(2000);
|
||||
cy.get(apiwidget.propertyList).then(function($lis) {
|
||||
expect($lis).to.have.length(2);
|
||||
expect($lis.eq(0)).to.contain("{{Api.isVisible}}");
|
||||
expect($lis.eq(1)).to.contain("{{Api.text}}");
|
||||
expect($lis.eq(0)).to.contain("{{Text1.isVisible}}");
|
||||
expect($lis.eq(1)).to.contain("{{Text1.text}}");
|
||||
});
|
||||
cy.GlobalSearchEntity("Api");
|
||||
cy.EditApiNameFromExplorer("ApiUpdated");
|
||||
cy.GlobalSearchEntity("ApiUpdated");
|
||||
cy.GlobalSearchEntity("Text1");
|
||||
cy.EditApiNameFromExplorer("TextUpdated");
|
||||
cy.GlobalSearchEntity("TextUpdated");
|
||||
cy.get(apiwidget.propertyList).then(function($lis) {
|
||||
expect($lis).to.have.length(2);
|
||||
expect($lis.eq(0)).to.contain("{{ApiUpdated.isVisible}}");
|
||||
expect($lis.eq(1)).to.contain("{{ApiUpdated.text}}");
|
||||
expect($lis.eq(0)).to.contain("{{TextUpdated.isVisible}}");
|
||||
expect($lis.eq(1)).to.contain("{{TextUpdated.text}}");
|
||||
});
|
||||
cy.DeleteWidgetFromSideBar();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user