graphdb-workbench-tests 2.0.0-TR12 → 2.0.0-TR13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,18 +16,7 @@ describe('Main menu tests', function () {
16
16
  {
17
17
  name: 'Import',
18
18
  visible: true,
19
- submenu: [
20
- {
21
- name: 'RDF',
22
- visible: false,
23
- redirect: '/import'
24
- },
25
- {
26
- name: 'Tabular (OntoRefine)',
27
- visible: false,
28
- redirect: '/ontorefine'
29
- }
30
- ]
19
+ redirect: '/import'
31
20
  },
32
21
  {
33
22
  name: 'Explore',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "2.0.0-TR12",
3
+ "version": "2.0.0-TR13",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "scripts": {
6
6
  "start": "cypress open",
@@ -1,135 +0,0 @@
1
- describe('Import/ OntoRefine', () => {
2
-
3
- let repositoryId;
4
-
5
- beforeEach(() => {
6
- repositoryId = 'onto-refine-' + Date.now();
7
- cy.createRepository({id: repositoryId});
8
-
9
- cy.visit('/ontorefine');
10
- cy.window();
11
-
12
- cy.get('.ot-splash').should('not.exist');
13
- getOntoRefineFrame().should('be.visible');
14
- });
15
-
16
- afterEach(() => {
17
- cy.deleteRepository(repositoryId);
18
- });
19
-
20
- const REFINE_TABS = ['Create Project', 'Open Project', 'Import Project', 'Language Settings'];
21
- const CREATE_PROJECT_TABS = ['This Computer', 'Web Addresses (URLs)', 'Clipboard'];
22
-
23
- xit('should properly render OntoRefine transformation tool frame', () => {
24
-
25
- // Refine should provide navigation tabs
26
- getOntoRefineTabs()
27
- .should('be.visible')
28
- .and('have.length', 4)
29
- .each(($tab, $index) => expect($tab.text()).to.equal(REFINE_TABS[$index]))
30
- .eq(0)
31
- // The first tab should be automatically selected
32
- .should('have.class', 'selected')
33
- .and('be.visible');
34
-
35
- // -------- Create project --------
36
-
37
- // The create project panel should be rendered by default and provide its own tabs
38
- getCreateProjectPanel().should('be.visible');
39
- getCreateProjectPanelTabs()
40
- .should('be.visible')
41
- .and('have.length', 3)
42
- .each(($tab, $index) => expect($tab.text()).to.equal(CREATE_PROJECT_TABS[$index]))
43
- .eq(0)
44
- .should('have.class', 'selected')
45
- .and('be.visible');
46
-
47
- // The upload panel should be opened by default
48
- getCreateProjectPanelBody()
49
- .find('.upload-parent #upload')
50
- .should('be.visible');
51
-
52
- // Go to URL panel
53
- getCreateProjectPanelTabs().eq(1).click();
54
- getCreateProjectPanelBody()
55
- .find('.default-importing-web-url')
56
- .should('be.visible');
57
-
58
- // Go to Clipboard panel
59
- getCreateProjectPanelTabs().eq(2).click();
60
- getCreateProjectPanelBody()
61
- .find('#default-importing-clipboard-textarea')
62
- .should('be.visible');
63
-
64
- // -------- Open project --------
65
-
66
- // Go to Open project and check if the panels are properly switched
67
- getOntoRefineTabs().eq(1).click();
68
- getCreateProjectPanel().should('not.exist');
69
- getOpenProjectPanel()
70
- .should('be.visible')
71
- // Should have no existing projects for new repositories
72
- .find('#no-project-message')
73
- .should('be.visible');
74
-
75
- // -------- Import project --------
76
-
77
- getOntoRefineTabs().eq(2).click();
78
- getOpenProjectPanel().should('not.exist');
79
- getImportProjectPanel()
80
- .should('be.visible')
81
- .find('#import-project-button')
82
- .should('be.visible');
83
-
84
- // -------- Language Settings --------
85
-
86
- getOntoRefineTabs().eq(3).click();
87
- getImportProjectPanel().should('not.exist');
88
- getLanguageSettingsPanel()
89
- .should('be.visible')
90
- .find('#set-lang-button')
91
- .should('be.visible');
92
- });
93
-
94
- function getOntoRefineFrame() {
95
- return cy.get('#ontorefine-iframe').iframe();
96
- }
97
-
98
- function getOntoRefineLeftPanel() {
99
- return getOntoRefineFrame().find('#left-panel');
100
- }
101
-
102
- function getOntoRefineTabs() {
103
- return getOntoRefineLeftPanel().find('#action-area-tabs .action-area-tab');
104
- }
105
-
106
- function getOntoRefineRightPanel() {
107
- return getOntoRefineFrame().find('#right-panel');
108
- }
109
-
110
- function getCreateProjectPanel() {
111
- return getOntoRefineRightPanel().find('#create-project-ui-source-selection-layout');
112
- }
113
-
114
- function getCreateProjectPanelTabs() {
115
- return getCreateProjectPanel().find('#create-project-ui-source-selection-tabs .create-project-ui-source-selection-tab')
116
- }
117
-
118
- function getCreateProjectPanelBody() {
119
- return getCreateProjectPanel().find('#create-project-ui-source-selection-tab-bodies')
120
- }
121
-
122
- function getOpenProjectPanel() {
123
- return getOntoRefineRightPanel().find('#projects-container');
124
- }
125
-
126
- function getImportProjectPanel() {
127
- // TODO Note: The third and fourth tab bodies have the same identifier....
128
- return getOntoRefineRightPanel().find('.action-area-tab-body').eq(2);
129
- }
130
-
131
- function getLanguageSettingsPanel() {
132
- return getOntoRefineRightPanel().find('.action-area-tab-body').eq(3);
133
- }
134
-
135
- });