Skip to content

Commit

Permalink
Improve test for my settings view
Browse files Browse the repository at this point in the history
  • Loading branch information
svilenvelikov authored and teodossidossev committed Nov 4, 2024
1 parent 869ad06 commit d8581e2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test-cypress/integration/setup/my-settings.spec.js
Original file line number Diff line number Diff line change
@@ -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', () => {

Expand Down Expand Up @@ -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();
Expand All @@ -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');
Expand Down

0 comments on commit d8581e2

Please sign in to comment.