From d8581e241f4b7aa48d2f2a2efd270ef0e3e23e93 Mon Sep 17 00:00:00 2001 From: "svilen.velikov" Date: Mon, 4 Nov 2024 09:41:05 +0200 Subject: [PATCH] Improve test for my settings view --- test-cypress/integration/setup/my-settings.spec.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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');