diff --git a/test-cypress/integration/setup/my-settings.spec.js b/test-cypress/integration/setup/my-settings.spec.js index 6018eee2b..d05c57d91 100644 --- a/test-cypress/integration/setup/my-settings.spec.js +++ b/test-cypress/integration/setup/my-settings.spec.js @@ -1,6 +1,7 @@ import {SparqlEditorSteps} from "../../steps/sparql-editor-steps"; import {YasqeSteps} from "../../steps/yasgui/yasqe-steps"; import {SecurityStubs} from "../../stubs/security-stubs"; +import {VisualGraphSteps} from "../../steps/visual-graph-steps"; describe('My Settings', () => { @@ -142,13 +143,12 @@ describe('My Settings', () => { cy.get('#schema-on').find('.switch:checkbox').should('be.checked'); cy.enableAutocomplete(repositoryId); //Verify that schema statements ON is reflected in Visual graph - visitVisualGraphView(); - cy.searchEasyVisualGraph(DRY_GRAPH); + VisualGraphSteps.openDryWineUri(); cy.get('.visual-graph-settings-btn').scrollIntoView().click(); cy.get('.rdf-info-side-panel .filter-sidepanel').should('be.visible'); cy.get('.include-schema-statements').should('be.visible').and('be.checked'); saveGraphSettings() - .then(() => cy.get('.predicate').should('contain','type')); + .then(() => cy.get('.predicate').should('contain', 'type')); //Set schema statements OFF in my settings visitSettingsView(); @@ -166,9 +166,7 @@ describe('My Settings', () => { }); //Verify that schema statements OFF is reflected in Visual graph - visitVisualGraphView(); - - cy.searchEasyVisualGraph(DRY_GRAPH); + VisualGraphSteps.openDryWineUri(); cy.get('.visual-graph-settings-btn').click(); cy.get('.rdf-info-side-panel .filter-sidepanel').should('be.visible');