Skip to content

Commit

Permalink
Merge pull request #68 from Ontotext-AD/import-text-snippet-with-rest…
Browse files Browse the repository at this point in the history
…-in-visual-graph

Use REST to import text snippet in visual graph spec
  • Loading branch information
desislava-hristova-ontotext authored Sep 11, 2019
2 parents eae2526 + 5187e27 commit 7050ede
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions test-cypress/integration/explore/graphs.overview.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import ImportSteps from '../../steps/import-steps';

const EXPORT_GRAPHS_TABLE_ID = '#export-graphs';
const ROWS_PER_PAGE_20 = '1';
const ROWS_PER_PAGE_ALL = '2';
Expand All @@ -12,18 +10,11 @@ describe('Graphs overview screen validation', () => {
repositoryId = 'repo' + Date.now();
cy.createRepository({id: repositoryId});
cy.presetRepositoryCookie(repositoryId);
cy.visit("/");

cy.visit('/');

cy.navigateToPage('Import', 'RDF');
ImportSteps.openImportTextSnippetDialog();
cy.fixture('graph/rdf.txt').then((rdf) => {
return new Cypress.Promise((resolve, reject) => {
ImportSteps.pasteRDFTextSnippet(rdf)
.selectRDFFormat('TriG')
.clickImportTextSnippetButton()
.importFromSettingsDialog()
.verifyImportStatus('Text snippet', 'Imported successfully');
cy.importRDFTextSnippet(repositoryId, rdf, {format: "application/x-trig"});
resolve();
});
});
Expand Down

0 comments on commit 7050ede

Please sign in to comment.