Skip to content

Commit f7e8ce6

Browse files
Feature/adjust documentation to new design (#147)
* Update images for first page of getting started * Add menu images for doc * Update menu-file.png * Adjust image path * Adjust getting started guide for ui overview adoc * Change images * Update ui-overview.adoc * Adjust settings.adoc * Update load and save model adoc * Update last section of getting started guide edit models * Update section modelling * Fix size of image * Adjust documentation and fix example value bug * Fix refreshing workspace after saving it * Update use-external-references.adoc * Change images for external references adoc * Adjust use references * Adjust generate topic in antora * Update use-references.adoc * Update ui-overview.adoc * Add images to antora doc * Fix loading problem on sidebar * Update file-handling.service.ts * Fix images of documentation * Remove unused images from doc and fix some issues * Update edit-abstract-entity.cy.ts --------- Co-authored-by: Larisa Vasile <[email protected]>
1 parent 6d3cf01 commit f7e8ce6

File tree

138 files changed

+798
-583
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+798
-583
lines changed

core/apps/ame-e2e/src/integration/editor/edit-abstract-entity.cy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ describe('Create and Edit Abstract Entity', () => {
305305
it('should create model', () => {
306306
cy.visitDefault();
307307
cy.startModelling()
308+
.wait(500)
308309
.then(() => cy.get(SELECTOR_elementBtn).click())
309310
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
310311
.then(() => cy.dragElement(SELECTOR_ecAbstractEntity, 350, 300).then(() => cy.clickShape('AbstractEntity1')))

core/apps/ame-e2e/src/integration/editor/edit-abstract-property.cy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ describe('Create and Edit Abstract Property', () => {
131131
cy.fixture('abstract-property')
132132
.as('rdfString')
133133
.then(rdfString => cy.loadModel(rdfString))
134+
.wait(500)
134135
.then(() => cy.clickShape('abstractProperty1'));
135136
});
136137

@@ -155,6 +156,7 @@ describe('Create and Edit Abstract Property', () => {
155156
it('should create model', () => {
156157
cy.visitDefault();
157158
cy.startModelling()
159+
.wait(500)
158160
.then(() => cy.get(SELECTOR_elementBtn).click())
159161
.then(() => cy.dragElement(SELECTOR_ecAbstractEntity, 350, 300))
160162
.then(() => cy.clickShape('AbstractEntity1'));

core/apps/ame-e2e/src/integration/editor/edit-enumeration-entity-values.cy.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ describe('Test enumeration entity value', () => {
4444
cy.intercept('POST', 'http://localhost:9091/ame/api/models/validate', {fixture: 'model-validation-response.json'});
4545
cy.visitDefault();
4646
cy.startModelling()
47+
.wait(500)
4748
.then(() => cy.get(SELECTOR_elementBtn).click())
4849
.then(() => cy.dbClickShape('Characteristic1'))
4950
.then(() => cy.get(FIELD_clearDataTypeBtn).click({force: true}))
@@ -152,6 +153,7 @@ describe('Test enumeration entity value', () => {
152153
it('add entity values with one property', () => {
153154
cy.visitDefault();
154155
cy.startModelling()
156+
.wait(500)
155157
.then(() => cy.get(SELECTOR_elementBtn).click())
156158
.then(() => cy.shapeExists('Characteristic1'))
157159
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
@@ -210,6 +212,7 @@ describe('Test enumeration entity value', () => {
210212
it('add entity value without property', () => {
211213
cy.visitDefault();
212214
cy.startModelling()
215+
.wait(500)
213216
.then(() => cy.get(SELECTOR_elementBtn).click())
214217
.then(() => cy.shapeExists('Characteristic1'))
215218
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
@@ -236,6 +239,7 @@ describe('Test enumeration entity value', () => {
236239
it('show searchbar when complex values enumeration is selected', () => {
237240
cy.visitDefault();
238241
cy.startModelling()
242+
.wait(500)
239243
.then(() => cy.get(SELECTOR_elementBtn).click())
240244
.then(() => cy.shapeExists('Characteristic1'))
241245
.then(() => cy.dbClickShape('Characteristic1'))
@@ -474,6 +478,7 @@ describe('Test enumeration entity value', () => {
474478
it('it should add manually new entity value shape', () => {
475479
cy.visitDefault();
476480
cy.startModelling()
481+
.wait(500)
477482
.then(() => cy.get(SELECTOR_elementBtn).click())
478483
.then(() => cy.shapeExists('Characteristic1'))
479484
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
@@ -550,6 +555,7 @@ describe('Test enumeration entity value', () => {
550555
it('should create NewEntity', () => {
551556
cy.visitDefault();
552557
cy.startModelling()
558+
.wait(500)
553559
.then(() => cy.get(SELECTOR_elementBtn).click())
554560
.then(() => cy.intercept('POST', 'http://localhost:9091/ame/api/models/validate', {fixture: 'model-validation-response.json'}))
555561
.then(() => cy.dbClickShape('Characteristic1'))
@@ -570,6 +576,7 @@ describe('Test enumeration entity value', () => {
570576
it('should create NewEntity and new entity values', () => {
571577
cy.visitDefault();
572578
cy.startModelling()
579+
.wait(500)
573580
.then(() => cy.get(SELECTOR_elementBtn).click())
574581
.then(() => cy.intercept('POST', 'http://localhost:9091/ame/api/models/validate', {fixture: 'model-validation-response.json'}))
575582
.then(() => cy.dbClickShape('Characteristic1'))
@@ -595,6 +602,7 @@ describe('Test enumeration entity value', () => {
595602
it('should create enumeration with lang string values', () => {
596603
cy.visitDefault();
597604
cy.startModelling()
605+
.wait(500)
598606
.then(() => cy.get(SELECTOR_elementBtn).click())
599607
.then(() => cy.intercept('POST', 'http://localhost:9091/ame/api/models/validate', {fixture: 'model-validation-response.json'}))
600608
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
@@ -703,7 +711,7 @@ describe('Test enumeration entity value', () => {
703711
it('should create nested enumerations', () => {
704712
cy.visitDefault();
705713
cy.startModelling()
706-
.then(() => cy.intercept('POST', 'http://localhost:9091/ame/api/models/validate', {fixture: 'model-validation-response.json'}))
714+
.wait(500)
707715
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
708716
.then(() => cy.clickAddShapePlusIcon('Entity1'))
709717
.then(() => cy.clickAddShapePlusIcon('property2'))

core/apps/ame-e2e/src/integration/editor/edit-property.cy.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ describe('Test edit property', () => {
4444
it('should rename first property and new property', () => {
4545
cy.visitDefault();
4646
cy.startModelling()
47+
.wait(500)
4748
.then(() => cy.get(SELECTOR_elementBtn).click())
4849
.then(() => cy.shapeExists('property1'))
4950
.then(() => cy.dbClickShape('property1'))
@@ -92,6 +93,7 @@ describe('Test edit property', () => {
9293

9394
cy.visitDefault();
9495
cy.startModelling()
96+
.wait(500)
9597
.then(() => cy.shapeExists('property1'))
9698
.then(() => cy.dbClickShape('property1'))
9799
.then(() => cy.get(FIELD_name).clear({force: true}).type('externalPropertyWithChildren ', {force: true}).wait(1000))
@@ -224,6 +226,7 @@ describe('Test edit property', () => {
224226
it('should rename first property and rename new added property', () => {
225227
cy.visitDefault();
226228
cy.startModelling()
229+
.wait(500)
227230
.then(() => cy.get(SELECTOR_elementBtn).click())
228231
.then(() => cy.shapeExists('property1'))
229232
.then(() => cy.dbClickShape('property1'))
@@ -249,6 +252,7 @@ describe('Test edit property', () => {
249252
it('should rename first property and rename second added second property and add new default property', () => {
250253
cy.visitDefault();
251254
cy.startModelling()
255+
.wait(500)
252256
.then(() => cy.get(SELECTOR_elementBtn).click())
253257
.then(() => cy.shapeExists('property1'))
254258
.then(() => cy.dbClickShape('property1'))
@@ -276,6 +280,7 @@ describe('Test edit property', () => {
276280
it('should rename property and rename second added property and rename third added default property', () => {
277281
cy.visitDefault();
278282
cy.startModelling()
283+
.wait(500)
279284
.then(() => cy.get(SELECTOR_elementBtn).click())
280285
.then(() => cy.shapeExists('property1'))
281286
.then(() => cy.dbClickShape('property1'))
@@ -309,6 +314,7 @@ describe('Test edit property', () => {
309314

310315
cy.visitDefault();
311316
cy.startModelling()
317+
.wait(500)
312318
.then(() => cy.get(SELECTOR_elementBtn).click())
313319
// create a
314320
.then(() => cy.shapeExists('property1'))
@@ -359,6 +365,7 @@ describe('Test edit property', () => {
359365
it('should rename aspect after rename property and create new default property', () => {
360366
cy.visitDefault();
361367
cy.startModelling()
368+
.wait(500)
362369
.then(() => cy.get(SELECTOR_elementBtn).click())
363370
.then(() => cy.shapeExists('property1'))
364371
.then(() => cy.dbClickShape('property1'))
@@ -388,6 +395,7 @@ describe('Test edit property', () => {
388395
it('should create entity rename new created property and create new default entity property', () => {
389396
cy.visitDefault();
390397
cy.startModelling()
398+
.wait(500)
391399
.then(() => cy.get(SELECTOR_elementBtn).click())
392400
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
393401
.then(() => cy.shapeExists('Entity1'))
@@ -416,6 +424,7 @@ describe('Test edit property', () => {
416424
it('should rename entity after rename new created property and create new default entity property', () => {
417425
cy.visitDefault();
418426
cy.startModelling()
427+
.wait(500)
419428
.then(() => cy.get(SELECTOR_elementBtn).click())
420429
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
421430
.then(() => cy.shapeExists('Entity1'))
@@ -450,6 +459,7 @@ describe('Test edit property', () => {
450459
it('should rename entity property and create new default property and then create aspect property and rename the aspect', () => {
451460
cy.visitDefault();
452461
cy.startModelling()
462+
.wait(500)
453463
.then(() => cy.get(SELECTOR_elementBtn).click())
454464
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
455465
.then(() => cy.shapeExists('Entity1'))
@@ -496,6 +506,7 @@ describe('Test edit property', () => {
496506
it('should overwrite property with optional and notInPayload should not be present', () => {
497507
cy.visitDefault();
498508
cy.startModelling()
509+
.wait(500)
499510
.then(() => cy.get(SELECTOR_elementBtn).click())
500511
.then(() => cy.dbClickShape('AspectDefault'))
501512
.then(() => cy.get('[data-cy="properties-modal-button"]').click({force: true}))
@@ -525,6 +536,7 @@ describe('Test edit property', () => {
525536
it('should overwrite property of complex enumeration with notInPayload', () => {
526537
cy.visitDefault();
527538
cy.startModelling()
539+
.wait(500)
528540
.then(() => cy.get(SELECTOR_elementBtn).click())
529541
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
530542
.then(() => cy.shapeExists('Entity1'))
@@ -560,6 +572,7 @@ describe('Test edit property', () => {
560572
it('should overwrite property with payloadName', () => {
561573
cy.visitDefault();
562574
cy.startModelling()
575+
.wait(500)
563576
.then(() => cy.get(SELECTOR_elementBtn).click())
564577
.then(() => cy.dbClickShape('AspectDefault'))
565578
.then(() => cy.get('[data-cy="properties-modal-button"]').click({force: true}))

core/apps/ame-e2e/src/integration/editor/edit-time-series-entity.cy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('Time Series Entity', () => {
2828
it('should create TimeSeriesEntity with its properties', () => {
2929
cy.visitDefault();
3030
cy.startModelling()
31+
.wait(500)
3132
.then(() => cy.get(SELECTOR_elementBtn).click())
3233
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
3334
.then(() => createTimeSeriesEntity())
@@ -141,6 +142,7 @@ describe('Time Series Entity', () => {
141142
cy.fixture('time-series-entity')
142143
.as('rdfString')
143144
.then(rdfString => cy.loadModel(rdfString))
145+
.wait(500)
144146
.then(() => cy.clickShape('Entity1'))
145147
.then(() => cy.getCellLabel('Entity1', 'preferredName').should('eq', 'Inherited\npreferredName = Time Series Entity @en'))
146148
.then(() =>

core/apps/ame-e2e/src/integration/editor/file-resource-entity.cy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('Time Series Entity', () => {
2828
it('should create FileResource with its properties', () => {
2929
cy.visitDefault();
3030
cy.startModelling()
31+
.wait(500)
3132
.then(() => cy.clickAddShapePlusIcon('Characteristic1'))
3233
.then(() => createFileResourceEntity())
3334

core/apps/ame-e2e/src/integration/editor/load-external-references-different-namespace.cy.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ describe('Test drag and drop', () => {
3636
cy.fixture('/external-reference/different-namespace/model-with-external-property-reference-with-childrens')
3737
.as('rdfString')
3838
.then(rdfString => cy.loadModel(rdfString))
39+
.wait(500)
3940
.then(() => cy.getAspect())
4041
.then(aspect => {
4142
expect(aspect.name).to.equal('AspectDefault');
@@ -91,6 +92,7 @@ describe('Test drag and drop', () => {
9192
cy.fixture('/external-reference/different-namespace/entity-external-property-with-children-reference')
9293
.as('rdfString')
9394
.then(rdfString => cy.loadModel(rdfString))
95+
.wait(500)
9496
.then(() => cy.getAspect())
9597
.then(aspect => {
9698
const aspectParams = {name: 'AspectDefault'};
@@ -143,6 +145,7 @@ describe('Test drag and drop', () => {
143145
cy.fixture('/external-reference/different-namespace/model-with-external-operation-reference-with-children')
144146
.as('rdfString')
145147
.then(rdfString => cy.loadModel(rdfString))
148+
.wait(500)
146149
.then(() => cy.getAspect())
147150
.then(aspect => {
148151
expect(aspect.name).to.equal('AspectDefault');
@@ -217,6 +220,7 @@ describe('Test drag and drop', () => {
217220
cy.fixture('/external-reference/different-namespace/model-with-external-characteristic-reference-with-childrens')
218221
.as('rdfString')
219222
.then(rdfString => cy.loadModel(rdfString))
223+
.wait(500)
220224
.then(() => cy.getAspect())
221225
.then(aspect => {
222226
expect(aspect.name).to.equal('AspectDefault');
@@ -273,6 +277,7 @@ describe('Test drag and drop', () => {
273277
cy.fixture('/external-reference/different-namespace/model-with-external-entity-reference-with-childrens')
274278
.as('rdfString')
275279
.then(rdfString => cy.loadModel(rdfString))
280+
.wait(500)
276281
.then(() => cy.getAspect())
277282
.then(aspect => {
278283
expect(aspect.name).to.equal('AspectDefault');
@@ -328,6 +333,7 @@ describe('Test drag and drop', () => {
328333
cy.fixture('/external-reference/different-namespace/model-with-external-unit-reference')
329334
.as('rdfString')
330335
.then(rdfString => cy.loadModel(rdfString))
336+
.wait(500)
331337
.then(() => cy.getAspect())
332338
.then(aspect => {
333339
expect(aspect.name).to.equal('AspectDefault');
@@ -435,6 +441,7 @@ describe('Test drag and drop', () => {
435441
cy.fixture('/external-reference/different-namespace/model-with-several-external-reference')
436442
.as('rdfString')
437443
.then(rdfString => cy.loadModel(rdfString))
444+
.wait(500)
438445
.then(() => cy.getAspect())
439446
.then(aspect => {
440447
expect(aspect.name).to.equal('AspectDefault');

core/apps/ame-e2e/src/integration/editor/load-external-references-same-namespace.cy.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ describe('Test load external reference with same namespace', () => {
3939
cy.fixture('/external-reference/same-namespace/model-with-external-property-reference-with-children')
4040
.as('rdfString')
4141
.then(rdfString => cy.loadModel(rdfString))
42+
.wait(500)
4243
.then(() => cy.getAspect())
4344
.then(aspect => {
4445
expect(aspect.name).to.equal('AspectDefault');
@@ -97,6 +98,7 @@ describe('Test load external reference with same namespace', () => {
9798
cy.fixture('/external-reference/same-namespace/model-with-external-operation-reference-with-children')
9899
.as('rdfString')
99100
.then(rdfString => cy.loadModel(rdfString))
101+
.wait(500)
100102
.then(() => cy.getAspect())
101103
.then(aspect => {
102104
expect(aspect.name).to.equal('AspectDefault');
@@ -174,6 +176,7 @@ describe('Test load external reference with same namespace', () => {
174176
cy.fixture('/external-reference/same-namespace/model-with-external-characteristic-reference-with-children')
175177
.as('rdfString')
176178
.then(rdfString => cy.loadModel(rdfString))
179+
.wait(500)
177180
.then(() => cy.getAspect())
178181
.then(aspect => {
179182
expect(aspect.name).to.equal('AspectDefault');
@@ -230,6 +233,7 @@ describe('Test load external reference with same namespace', () => {
230233
cy.fixture('/external-reference/same-namespace/model-with-external-unit-reference')
231234
.as('rdfString')
232235
.then(rdfString => cy.loadModel(rdfString))
236+
.wait(500)
233237
.then(() => cy.getAspect())
234238
.then(aspect => {
235239
expect(aspect.name).to.equal('AspectDefault');
@@ -278,6 +282,7 @@ describe('Test load external reference with same namespace', () => {
278282
cy.fixture('/external-reference/same-namespace/model-with-external-entity-reference-with-children')
279283
.as('rdfString')
280284
.then(rdfString => cy.loadModel(rdfString))
285+
.wait(500)
281286
.then(() => cy.getAspect())
282287
.then(aspect => {
283288
expect(aspect.name).to.equal('AspectDefault');
@@ -395,6 +400,7 @@ describe('Test load external reference with same namespace', () => {
395400
cy.fixture('/external-reference/same-namespace/model-with-several-external-reference')
396401
.as('rdfString')
397402
.then(rdfString => cy.loadModel(rdfString))
403+
.wait(500)
398404
.then(() => cy.getAspect())
399405
.then(aspect => {
400406
expect(aspect.name).to.equal('AspectDefault');

core/apps/ame-e2e/src/integration/editor/load-external-references-with-cross-reference.cy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ describe('Test load external reference with cross references', () => {
128128
cy.fixture('/external-reference/cross-references/model-with-cross-referenced-element')
129129
.as('rdfString')
130130
.then(rdfString => cy.loadModel(rdfString))
131+
.wait(500)
131132
.then(() => cyHelp.checkAspectDefaultExists())
132133
.then(() => cy.getAspect())
133134
.then(aspect => {
@@ -241,6 +242,7 @@ describe('Test load external reference with cross references', () => {
241242
cy.fixture('/external-reference/cross-references/model-with-cross-referenced-element-with-mixing-namespaces')
242243
.as('rdfString')
243244
.then(rdfString => cy.loadModel(rdfString))
245+
.wait(500)
244246
.then(() => cyHelp.checkAspectDefaultExists())
245247
.then(() => cy.getAspect())
246248
.then(aspect => {

core/apps/ame-e2e/src/support/commands.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {cyHelp} from './helpers';
2222
import {FileHandlingService, GenerateHandlingService} from '@ame/editor';
2323
import {SearchesStateService} from '@ame/utils';
2424
import {NamespacesManagerService} from '@ame/namespace-manager';
25+
import {Aspect} from '@ame/meta-model';
2526

2627
const {mxEventObject, mxEvent} = mxgraphFactory({});
2728

@@ -283,7 +284,7 @@ declare global {
283284

284285
Cypress.Commands.add('visitDefault', () => cy.visit('?e2e=true'));
285286

286-
Cypress.Commands.add('getAspect', () => cy.window().then(win => win['angular.modelService'].loadedAspect));
287+
Cypress.Commands.add('getAspect', () => cy.window().then(win => win['angular.modelService'].loadedAspect as Aspect));
287288

288289
Cypress.Commands.add('getEditorService', () => cy.window().then(win => win['angular.editorService']));
289290
Cypress.Commands.add('getMxgraphService', () => cy.window().then(win => win['angular.mxGraphService']));

0 commit comments

Comments
 (0)