graphdb-workbench-tests 4.0.0-reactodia-blank-nodes-TR2 → 4.0.0-revert-explain-query-tests
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.
- package/e2e-flaky/import/import-server-files-operations.spec.js +9 -9
- package/e2e-flaky/import/import-user-data-batch-operations.spec.js +7 -7
- package/e2e-flaky/import/import-user-data-url.spec.js +1 -1
- package/e2e-legacy/cluster/cluster-configuration/cluster-configuration-multi-region.spec.js +20 -0
- package/e2e-legacy/guides/import-rdf-file/confirm-duplicate-rdf-file.spec.js +1 -1
- package/e2e-legacy/guides/main-menu/main-menu-guide.spec.js +6 -14
- package/e2e-legacy/guides/ttyg/configure-agent/configure-agent-guide.spec.js +26 -30
- package/e2e-legacy/guides/ttyg/edit-agent/edit-ttyg-agent-guide.spec.js +12 -20
- package/e2e-legacy/import/import-server-files-batch-operations.spec.js +5 -5
- package/e2e-legacy/import/import-server-files.spec.js +23 -23
- package/e2e-legacy/import/import-user-data-file-upload.spec.js +21 -21
- package/e2e-legacy/import/import-user-data-text-snippet.spec.js +8 -8
- package/e2e-legacy/import/import-user-data-url.spec.js +3 -3
- package/e2e-legacy/import/import-view.spec.js +2 -2
- package/e2e-legacy/repository/rename-repository-restrictions.spec.js +125 -0
- package/e2e-legacy/repository/repositories.spec.js +3 -3
- package/e2e-legacy/resource/resource.spec.js +4 -17
- package/e2e-legacy/setup/settings/my-settings-initial-state.spec.js +5 -11
- package/e2e-legacy/setup/users-and-access/user-and-access.spec.js +43 -23
- package/e2e-legacy/ttyg/create-agent.spec.js +111 -0
- package/e2e-legacy/ttyg/edit-agent.spec.js +57 -0
- package/e2e-legacy/ttyg/ttyg-initial-state-with-configured-api-key.spec.js +1 -1
- package/e2e-legacy/ttyg/ttyg-initial-state-with-selected-repository.spec.js +1 -1
- package/e2e-legacy/ttyg/ttyg-initial-state-without-repositories.spec.js +1 -1
- package/fixtures/cluster/3-nodes-cluster-group-status-no-leader.json +41 -0
- package/fixtures/repositories/get-repositories-with-unsupported-graphql-types.json +46 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/steps/cluster/cluster-configuration-steps.js +4 -0
- package/steps/import/import-steps.js +26 -6
- package/steps/main-menu-steps.js +5 -23
- package/steps/resource/resource-steps.js +0 -8
- package/steps/setup/settings-steps.js +4 -0
- package/steps/setup/user-and-access-steps.js +44 -19
- package/steps/ttyg/ttyg-agent-settings-modal.steps.js +16 -0
- package/stubs/cluster/cluster-stubs.js +8 -1
- package/e2e-legacy/reactodia/reactodia.spec.js +0 -122
- package/steps/reactodia-steps.js +0 -42
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {EnvironmentStubs} from "../../stubs/environment-stubs";
|
|
2
2
|
|
|
3
|
+
const CENTER_SCROLL = {scrollBehavior: 'center'};
|
|
4
|
+
|
|
3
5
|
export class UserAndAccessSteps {
|
|
4
6
|
static visit() {
|
|
5
7
|
cy.visit('/users');
|
|
@@ -118,7 +120,9 @@ export class UserAndAccessSteps {
|
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
static typeUsername(text) {
|
|
121
|
-
this.getUsernameField()
|
|
123
|
+
this.getUsernameField()
|
|
124
|
+
.focus()
|
|
125
|
+
.type(text);
|
|
122
126
|
}
|
|
123
127
|
|
|
124
128
|
static getPasswordField() {
|
|
@@ -238,13 +242,13 @@ export class UserAndAccessSteps {
|
|
|
238
242
|
.contains('Global (any data repository)')
|
|
239
243
|
.parent('tr')
|
|
240
244
|
.find('.graphql')
|
|
241
|
-
.
|
|
245
|
+
.click(CENTER_SCROLL);
|
|
242
246
|
}
|
|
243
247
|
|
|
244
248
|
static clickGraphqlAccessRepo(repoName) {
|
|
245
249
|
this.getRepositoryRightsLine(repoName)
|
|
246
250
|
.find('.graphql')
|
|
247
|
-
.
|
|
251
|
+
.click(CENTER_SCROLL);
|
|
248
252
|
}
|
|
249
253
|
|
|
250
254
|
static clickReadAccessAny() {
|
|
@@ -252,7 +256,7 @@ export class UserAndAccessSteps {
|
|
|
252
256
|
.contains('Global (any data repository)')
|
|
253
257
|
.parent('tr')
|
|
254
258
|
.find('.read')
|
|
255
|
-
.
|
|
259
|
+
.click(CENTER_SCROLL);
|
|
256
260
|
}
|
|
257
261
|
|
|
258
262
|
static clickReadAccessRepo(repoName) {
|
|
@@ -260,7 +264,7 @@ export class UserAndAccessSteps {
|
|
|
260
264
|
.contains(repoName)
|
|
261
265
|
.parent('tr')
|
|
262
266
|
.find('.read')
|
|
263
|
-
.
|
|
267
|
+
.click(CENTER_SCROLL);
|
|
264
268
|
}
|
|
265
269
|
|
|
266
270
|
static clickWriteAccessAny() {
|
|
@@ -268,7 +272,7 @@ export class UserAndAccessSteps {
|
|
|
268
272
|
.contains('Global (any data repository)')
|
|
269
273
|
.parent('tr')
|
|
270
274
|
.find('.write')
|
|
271
|
-
.
|
|
275
|
+
.click(CENTER_SCROLL);
|
|
272
276
|
}
|
|
273
277
|
|
|
274
278
|
static clickWriteAccessRepo(repoName) {
|
|
@@ -276,7 +280,7 @@ export class UserAndAccessSteps {
|
|
|
276
280
|
.contains(repoName)
|
|
277
281
|
.parent('tr')
|
|
278
282
|
.find('.write')
|
|
279
|
-
.
|
|
283
|
+
.click(CENTER_SCROLL);
|
|
280
284
|
}
|
|
281
285
|
|
|
282
286
|
static findUserRowAlias(username, aliasName = 'userRow') {
|
|
@@ -351,7 +355,7 @@ export class UserAndAccessSteps {
|
|
|
351
355
|
}
|
|
352
356
|
|
|
353
357
|
static toggleReadAccessForRepo(repoName) {
|
|
354
|
-
return this.getReadAccessForRepo(repoName).
|
|
358
|
+
return this.getReadAccessForRepo(repoName).click(CENTER_SCROLL);
|
|
355
359
|
}
|
|
356
360
|
|
|
357
361
|
static validateReadAccessForRepo(repoName, expectedState) {
|
|
@@ -374,7 +378,7 @@ export class UserAndAccessSteps {
|
|
|
374
378
|
}
|
|
375
379
|
|
|
376
380
|
static toggleWriteAccessForRepo(repoName) {
|
|
377
|
-
return this.getWriteAccessForRepo(repoName).
|
|
381
|
+
return this.getWriteAccessForRepo(repoName).click(CENTER_SCROLL);
|
|
378
382
|
}
|
|
379
383
|
|
|
380
384
|
static validateWriteAccessForRepo(repoName, expectedState) {
|
|
@@ -390,7 +394,7 @@ export class UserAndAccessSteps {
|
|
|
390
394
|
}
|
|
391
395
|
|
|
392
396
|
static clickMaintainAccessRepo(repoName) {
|
|
393
|
-
UserAndAccessSteps.getMaintainAccessRepoCheckbox(repoName).
|
|
397
|
+
UserAndAccessSteps.getMaintainAccessRepoCheckbox(repoName).click(CENTER_SCROLL);
|
|
394
398
|
}
|
|
395
399
|
|
|
396
400
|
static toggleMaintainRepoForRepo(repoName) {
|
|
@@ -405,15 +409,12 @@ export class UserAndAccessSteps {
|
|
|
405
409
|
// ============= GraphQL Access Toggles and Validations =============
|
|
406
410
|
|
|
407
411
|
static getGraphqlAccessForRepo(repoName) {
|
|
408
|
-
const
|
|
409
|
-
return
|
|
410
|
-
.contains(matchText)
|
|
411
|
-
.parent('tr')
|
|
412
|
-
.find('.graphql')
|
|
412
|
+
const testId = (repoName === '*') ? 'graphql-any-checkbox' : 'graphql-repository-checkbox';
|
|
413
|
+
return this.getRepositoryRightsLine(repoName).getByTestId(testId);
|
|
413
414
|
}
|
|
414
415
|
|
|
415
416
|
static toggleGraphqlAccessForRepo(repoName) {
|
|
416
|
-
return this.getGraphqlAccessForRepo(repoName).
|
|
417
|
+
return this.getGraphqlAccessForRepo(repoName).click(CENTER_SCROLL);
|
|
417
418
|
}
|
|
418
419
|
|
|
419
420
|
static validateGraphqlAccessForRepo(repoName, expectedState) {
|
|
@@ -421,6 +422,30 @@ export class UserAndAccessSteps {
|
|
|
421
422
|
this.validateRightsForRepo(repoName, graphqlAccessCheckbox, expectedState);
|
|
422
423
|
}
|
|
423
424
|
|
|
425
|
+
static getRepositoryRightsRows() {
|
|
426
|
+
return cy.getByTestId('repository-rights-rows');
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
static getGraphqlAnyRoleTooltip() {
|
|
430
|
+
return cy.getByTestId('graphql-any-role-tooltip');
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
static getGraphqlRepositoryTypeTooltipForRepo(repoName) {
|
|
434
|
+
return this.getRepositoryRightsLine(repoName).getByTestId('graphql-repository-type-tooltip');
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
static hoverGraphQlRightsCheckbox(repoName) {
|
|
438
|
+
this.getGraphqlRepositoryTypeTooltipForRepo(repoName).trigger('mouseover');
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
static blurGraphQlRightsCheckbox(repoName) {
|
|
442
|
+
this.getGraphqlRepositoryTypeTooltipForRepo(repoName).trigger('mouseout');
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
static getAngularTooltip() {
|
|
446
|
+
return cy.get('.angular-tooltip');
|
|
447
|
+
}
|
|
448
|
+
|
|
424
449
|
static clickMenuItem(label) {
|
|
425
450
|
return cy.get('.main-menu').contains(label).click({force: true});
|
|
426
451
|
}
|
|
@@ -434,19 +459,19 @@ export class UserAndAccessSteps {
|
|
|
434
459
|
.contains(repoName)
|
|
435
460
|
.parent('.row')
|
|
436
461
|
.find('.read')
|
|
437
|
-
.
|
|
462
|
+
.click(CENTER_SCROLL);
|
|
438
463
|
}
|
|
439
464
|
|
|
440
465
|
static clickFreeWriteAccessRepo(repoName) {
|
|
441
466
|
cy.get('.repo-fields').contains(repoName).parent('.row').as('row');
|
|
442
467
|
cy.get('@row').scrollIntoView();
|
|
443
|
-
cy.get('@row').find('.write').
|
|
468
|
+
cy.get('@row').find('.write').click(CENTER_SCROLL);
|
|
444
469
|
}
|
|
445
470
|
|
|
446
471
|
static clickFreeGraphqlAccessRepo(repoName) {
|
|
447
472
|
cy.get('.repo-fields').contains(repoName).parent('.row').as('row');
|
|
448
473
|
cy.get('@row').scrollIntoView();
|
|
449
|
-
cy.get('@row').find('.graphql').
|
|
474
|
+
cy.get('@row').find('.graphql').click(CENTER_SCROLL);
|
|
450
475
|
}
|
|
451
476
|
|
|
452
477
|
}
|
|
@@ -451,6 +451,14 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
|
|
|
451
451
|
return this.getDialog().find('.temperature');
|
|
452
452
|
}
|
|
453
453
|
|
|
454
|
+
static getTemperatureToggle() {
|
|
455
|
+
return TtygAgentSettingsModalSteps.getTemperatureFormGroup().find('.temperature-toggle label');
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
static toggleTemperature() {
|
|
459
|
+
TtygAgentSettingsModalSteps.getTemperatureToggle().click();
|
|
460
|
+
}
|
|
461
|
+
|
|
454
462
|
static getTemperatureField() {
|
|
455
463
|
return this.getTemperatureFormGroup().find('#temperature');
|
|
456
464
|
}
|
|
@@ -477,6 +485,14 @@ export class TtygAgentSettingsModalSteps extends ModalDialogSteps {
|
|
|
477
485
|
return this.getDialog().find('.top-p');
|
|
478
486
|
}
|
|
479
487
|
|
|
488
|
+
static getTopPToggle() {
|
|
489
|
+
return TtygAgentSettingsModalSteps.getTopPFormGroup().find('.top-p-toggle label');
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
static toggleTop() {
|
|
493
|
+
TtygAgentSettingsModalSteps.getTopPToggle().click();
|
|
494
|
+
}
|
|
495
|
+
|
|
480
496
|
static getTopPField() {
|
|
481
497
|
return this.getTopPFormGroup().find('#topP');
|
|
482
498
|
}
|
|
@@ -132,7 +132,7 @@ export class ClusterStubs extends Stubs {
|
|
|
132
132
|
added.forEach((node) => {
|
|
133
133
|
response[node] = "Node was successfully added in the cluster.";
|
|
134
134
|
});
|
|
135
|
-
|
|
135
|
+
removed.forEach((node) => {
|
|
136
136
|
response[node] = "Node was successfully removed from the cluster.";
|
|
137
137
|
});
|
|
138
138
|
|
|
@@ -210,6 +210,13 @@ export class ClusterStubs extends Stubs {
|
|
|
210
210
|
}).as('3-nodes-cluster-group-status-tag');
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
static stubClusterGroupStatusWithoutLeader() {
|
|
214
|
+
cy.intercept('/rest/cluster/group/status', {
|
|
215
|
+
fixture: '/cluster/3-nodes-cluster-group-status-no-leader.json',
|
|
216
|
+
statusCode: 200
|
|
217
|
+
}).as('3-nodes-cluster-group-status-no-leader');
|
|
218
|
+
}
|
|
219
|
+
|
|
213
220
|
static stubDeleteTag(uri) {
|
|
214
221
|
cy.intercept(`rest/cluster/config/tag`, {
|
|
215
222
|
body: `"Removed primary tag '${uri}' from cluster`,
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import {ReactodiaSteps} from '../../steps/reactodia-steps.js';
|
|
2
|
-
import {LanguageSelectorSteps} from '../../steps/language-selector-steps.js';
|
|
3
|
-
import {RepositorySelectorSteps} from '../../steps/repository-selector-steps.js';
|
|
4
|
-
import {MainMenuSteps} from '../../steps/main-menu-steps.js';
|
|
5
|
-
|
|
6
|
-
const FILE_TO_IMPORT = 'resource-test-data.ttl';
|
|
7
|
-
const SEED_RESOURCE_ENCODED = 'http:%2F%2Fexample.com%2Fontology%23CustomerLoyalty';
|
|
8
|
-
const SEED_RESOURCE_LABEL = 'CustomerLoyalty';
|
|
9
|
-
|
|
10
|
-
const CONSTRUCT_QUERY = 'CONSTRUCT { <http://example.com/ontology#CustomerLoyalty> ?p ?o } WHERE { <http://example.com/ontology#CustomerLoyalty> ?p ?o }';
|
|
11
|
-
const CONSTRUCT_TARGET_LABEL = 'Metric';
|
|
12
|
-
|
|
13
|
-
describe('Reactodia graph explorer', () => {
|
|
14
|
-
let repositoryId;
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
repositoryId = 'repository-' + Date.now();
|
|
18
|
-
cy.createRepository({id: repositoryId});
|
|
19
|
-
cy.presetRepository(repositoryId);
|
|
20
|
-
cy.importServerFile(repositoryId, FILE_TO_IMPORT);
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
afterEach(() => {
|
|
24
|
-
cy.deleteRepository(repositoryId);
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('should mount the reactodia workspace when a repository is active', () => {
|
|
28
|
-
// Given I open the reactodia view without a start resource.
|
|
29
|
-
ReactodiaSteps.visit();
|
|
30
|
-
|
|
31
|
-
// Then I expect the reactodia workspace and its canvas to be rendered.
|
|
32
|
-
ReactodiaSteps.getWorkspace().should('exist');
|
|
33
|
-
ReactodiaSteps.getCanvas().should('exist');
|
|
34
|
-
|
|
35
|
-
// And I expect the canvas to start empty because no start resource was provided.
|
|
36
|
-
ReactodiaSteps.getElements().should('not.exist');
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it('should place the start resource on the canvas as a seed', () => {
|
|
40
|
-
// Given I open the reactodia view with a start resource.
|
|
41
|
-
ReactodiaSteps.visit(SEED_RESOURCE_ENCODED);
|
|
42
|
-
|
|
43
|
-
// Then I expect the start resource to be placed on the canvas as a seed element.
|
|
44
|
-
ReactodiaSteps.getElements().should('have.length', 1);
|
|
45
|
-
ReactodiaSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
it('should seed the canvas with the graph computed from a CONSTRUCT query', () => {
|
|
49
|
-
// Given I open the reactodia view with a CONSTRUCT query, as sent from the SPARQL editor.
|
|
50
|
-
ReactodiaSteps.visitWithQuery(CONSTRUCT_QUERY);
|
|
51
|
-
|
|
52
|
-
// Then I expect the computed graph to be seeded on the canvas: the subject and its related resource.
|
|
53
|
-
ReactodiaSteps.getElements().should('have.length', 2);
|
|
54
|
-
ReactodiaSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
55
|
-
ReactodiaSteps.getElement(CONSTRUCT_TARGET_LABEL).should('exist');
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
it('should keep the displayed resources when the language is switched', () => {
|
|
59
|
-
// Given the reactodia view is opened with a start resource that gets seeded on the canvas.
|
|
60
|
-
ReactodiaSteps.visit(SEED_RESOURCE_ENCODED);
|
|
61
|
-
ReactodiaSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
62
|
-
ReactodiaSteps.getElements().should('have.length', 1);
|
|
63
|
-
|
|
64
|
-
// When I switch the language.
|
|
65
|
-
LanguageSelectorSteps.switchToFr();
|
|
66
|
-
|
|
67
|
-
// Then I expect the same resources to remain visible because the layout is carried across the remount.
|
|
68
|
-
ReactodiaSteps.getElements().should('have.length', 1);
|
|
69
|
-
ReactodiaSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
it('should keep the diagram on refresh but clear it when navigating away and back', () => {
|
|
73
|
-
// Given the reactodia view is opened with a start resource that gets seeded on the canvas.
|
|
74
|
-
ReactodiaSteps.visit(SEED_RESOURCE_ENCODED);
|
|
75
|
-
ReactodiaSteps.getElements().should('have.length', 1);
|
|
76
|
-
ReactodiaSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
77
|
-
|
|
78
|
-
// When I refresh the page.
|
|
79
|
-
cy.reload();
|
|
80
|
-
|
|
81
|
-
// Then I expect the diagram state to be preserved across the refresh.
|
|
82
|
-
ReactodiaSteps.getElements().should('have.length', 1);
|
|
83
|
-
ReactodiaSteps.getElement(SEED_RESOURCE_LABEL).should('exist');
|
|
84
|
-
|
|
85
|
-
// When I navigate to another view via the navigation bar.
|
|
86
|
-
MainMenuSteps.clickOnSparqlMenu();
|
|
87
|
-
ReactodiaSteps.getComponent().should('not.exist');
|
|
88
|
-
|
|
89
|
-
// And I return to the reactodia view via the navigation bar.
|
|
90
|
-
MainMenuSteps.clickOnReactodia();
|
|
91
|
-
|
|
92
|
-
// Then I expect the canvas to be cleared, because leaving the view drops the persisted diagram state.
|
|
93
|
-
ReactodiaSteps.getWorkspace().should('exist');
|
|
94
|
-
ReactodiaSteps.getElements().should('not.exist');
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
describe('Repository switch', () => {
|
|
98
|
-
let secondRepositoryId;
|
|
99
|
-
|
|
100
|
-
beforeEach(() => {
|
|
101
|
-
secondRepositoryId = 'repository-second-' + Date.now();
|
|
102
|
-
cy.createRepository({id: secondRepositoryId});
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
afterEach(() => {
|
|
106
|
-
cy.deleteRepository(secondRepositoryId);
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
it('should clear the canvas when the repository is switched', () => {
|
|
110
|
-
// Given the reactodia view is opened with a start resource that gets seeded on the canvas.
|
|
111
|
-
ReactodiaSteps.visit(SEED_RESOURCE_ENCODED);
|
|
112
|
-
ReactodiaSteps.getElements().should('have.length', 1);
|
|
113
|
-
|
|
114
|
-
// When I switch to another repository.
|
|
115
|
-
RepositorySelectorSteps.selectRepository(secondRepositoryId);
|
|
116
|
-
|
|
117
|
-
// Then I expect the workspace to still be mounted, but the canvas to be cleared.
|
|
118
|
-
ReactodiaSteps.getWorkspace().should('exist');
|
|
119
|
-
ReactodiaSteps.getElements().should('not.exist');
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
});
|
package/steps/reactodia-steps.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import {BaseSteps} from "./base-steps.js";
|
|
2
|
-
|
|
3
|
-
const VIEW_URL = '/reactodia';
|
|
4
|
-
|
|
5
|
-
export class ReactodiaSteps extends BaseSteps {
|
|
6
|
-
|
|
7
|
-
static visit(uri) {
|
|
8
|
-
cy.visit(`${VIEW_URL}${uri ? ('?uri=' + uri) : ''}`);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
static visitWithQuery(query, {inference = false, sameAs = false} = {}) {
|
|
12
|
-
cy.visit(`${VIEW_URL}?query=${encodeURIComponent(query)}&inference=${inference}&sameAs=${sameAs}`);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
static verifyUrl() {
|
|
16
|
-
this.validateUrl(`${Cypress.config('baseUrl')}${VIEW_URL}`);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static verifyStartResourceUri(uri) {
|
|
20
|
-
cy.getQueryParam('uri').should('eq', uri);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static getComponent() {
|
|
24
|
-
return cy.get('graphwise-reactodia');
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
static getWorkspace() {
|
|
28
|
-
return ReactodiaSteps.getComponent().find('.reactodia-workspace');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
static getCanvas() {
|
|
32
|
-
return ReactodiaSteps.getComponent().find('.reactodia-canvas');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
static getElements() {
|
|
36
|
-
return ReactodiaSteps.getCanvas().find('[data-element-id]');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
static getElement(text) {
|
|
40
|
-
return ReactodiaSteps.getCanvas().find(`[data-element-id]`).contains(text).first();
|
|
41
|
-
}
|
|
42
|
-
}
|