Skip to content

Commit 1283d56

Browse files
authored
rename e2e (#193)
1 parent 8208d6e commit 1283d56

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

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

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ import {
3939
} from '../../support/constants';
4040
import {cyHelp} from '../../support/helpers';
4141

42-
describe('Test enumeration entity value', () => {
43-
it('should create nested entity values', () => {
42+
describe('Test enumeration entity instance', () => {
43+
it('should create nested entity instances', () => {
4444
cy.intercept('POST', 'http://localhost:9091/ame/api/models/validate', {fixture: 'model-validation-response.json'});
4545
cy.visitDefault();
4646
cy.startModelling()
@@ -105,7 +105,7 @@ describe('Test enumeration entity value', () => {
105105
});
106106
});
107107

108-
it('should rename nested entity values', () => {
108+
it('should rename nested entity instances', () => {
109109
cy.dbClickShape('ev1')
110110
.then(() => {
111111
cy.get(FIELD_propertyValueComplex).eq(0).should('have.value', 'ev2');
@@ -150,7 +150,7 @@ describe('Test enumeration entity value', () => {
150150
);
151151
});
152152

153-
it('add entity values with one property', () => {
153+
it('add entity instances with one property', () => {
154154
cy.visitDefault();
155155
cy.startModelling()
156156
.wait(500)
@@ -168,48 +168,48 @@ describe('Test enumeration entity value', () => {
168168
.contains('Enumeration')
169169
.click({force: true})
170170
.then(() => cy.get(SELECTOR_addEntityValue).click({force: true}))
171-
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityValue1', {force: true}))
171+
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityInstance1', {force: true}))
172172
.then(() => cy.get('[data-cy="property2Value"]').should('exist').type('TestPropertyValue1', {force: true}))
173173
.then(() => cy.get(SELECTOR_entitySaveButton).click({force: true}))
174174
.then(() => cy.wait(200))
175-
.then(() => checkMatPanelTitleValues([0], ['EntityValue1']))
175+
.then(() => checkMatPanelTitleValues([0], ['EntityInstance1']))
176176
.then(() => checkMatCellValues([0], ['property2']))
177177
.then(() => checkMatCellValues([1], ['TestPropertyValue1']))
178178
.then(() => cy.get(SELECTOR_addEntityValue).click({force: true}))
179-
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityValue2', {force: true}))
179+
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityInstance2', {force: true}))
180180
.then(() => cy.get('[data-cy="property2Value"]').should('exist').type('TestPropertyValue2', {force: true}))
181181
.then(() => cy.get(SELECTOR_entitySaveButton).click({force: true}))
182182
.then(() => cy.wait(200))
183-
.then(() => checkMatPanelTitleValues([1], ['EntityValue2']))
183+
.then(() => checkMatPanelTitleValues([1], ['EntityInstance2']))
184184
.then(() => checkMatCellValues([2], ['property2']))
185185
.then(() => checkMatCellValues([3], ['TestPropertyValue2']))
186186
.then(() => cy.get(SELECTOR_addEntityValue).click({force: true}))
187-
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityValue3', {force: true}))
187+
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityInstance3', {force: true}))
188188
.then(() => cy.get('[data-cy="property2Value"]').should('exist').type('TestPropertyValue3', {force: true}))
189189
.then(() => cy.get(SELECTOR_entitySaveButton).click({force: true}))
190190
.then(() => cy.wait(200))
191-
.then(() => checkMatPanelTitleValues([2], ['EntityValue3']))
191+
.then(() => checkMatPanelTitleValues([2], ['EntityInstance3']))
192192
.then(() => checkMatCellValues([4], ['property2']))
193193
.then(() => checkMatCellValues([5], ['TestPropertyValue3']));
194194
})
195195
.then(() => cyHelp.clickSaveButton())
196196
.then(() => cy.clickShape('Characteristic1'))
197-
.then(() => testEntityValuesExists(['EntityValue1', 'EntityValue2', 'EntityValue3']))
197+
.then(() => testEntityValuesExists(['EntityInstance1', 'EntityInstance2', 'EntityInstance3']))
198198
.then(() => {
199199
cy.getUpdatedRDF().then(rdf => {
200-
expect(rdf).to.contain('samm-c:values (:EntityValue1 :EntityValue2 :EntityValue3)');
200+
expect(rdf).to.contain('samm-c:values (:EntityInstance1 :EntityInstance2 :EntityInstance3)');
201201
expect(rdf).to.contain(':Entity1 a samm:Entity;');
202-
expect(rdf).to.contain(':EntityValue1 a :Entity1;');
202+
expect(rdf).to.contain(':EntityInstance1 a :Entity1;');
203203
expect(rdf).to.contain(':property2 "TestPropertyValue1"');
204-
expect(rdf).to.contain(':EntityValue2 a :Entity1;');
204+
expect(rdf).to.contain(':EntityInstance2 a :Entity1;');
205205
expect(rdf).to.contain(':property2 "TestPropertyValue2"');
206-
expect(rdf).to.contain(':EntityValue3 a :Entity1;');
206+
expect(rdf).to.contain(':EntityInstance3 a :Entity1;');
207207
expect(rdf).to.contain(':property2 "TestPropertyValue3"');
208208
});
209209
});
210210
});
211211

212-
it('add entity value without property', () => {
212+
it('add entity instance without property', () => {
213213
cy.visitDefault();
214214
cy.startModelling()
215215
.wait(500)
@@ -221,18 +221,18 @@ describe('Test enumeration entity value', () => {
221221
.then(() => cy.get(FIELD_characteristicName).click({force: true}).get('mat-option').contains('Enumeration').click({force: true}))
222222
.then(() => cy.get(SELECTOR_addEntityValue).click({force: true}))
223223
.then(() => cy.wait(200))
224-
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityValue', {force: true}))
224+
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityInstance', {force: true}))
225225
.then(() => cy.get(FIELD_propertyValueNotComplex).should('not.exist'))
226226
.then(() => cy.get(SELECTOR_entitySaveButton).click({force: true}))
227227
.then(() => cy.wait(200))
228-
.then(() => checkMatPanelTitleValues([0], ['EntityValue']))
228+
.then(() => checkMatPanelTitleValues([0], ['EntityInstance']))
229229
.then(() => cyHelp.clickSaveButton().wait(1000))
230-
.then(() => testEntityValuesExists(['EntityValue']))
230+
.then(() => testEntityValuesExists(['EntityInstance']))
231231
.then(() => cy.getUpdatedRDF())
232232
.then(rdf => {
233-
expect(rdf).to.contain('samm-c:values (:EntityValue).');
233+
expect(rdf).to.contain('samm-c:values (:EntityInstance).');
234234
expect(rdf).to.contain(':Entity1 a samm:Entity;');
235-
expect(rdf).to.contain(':EntityValue a :Entity1');
235+
expect(rdf).to.contain(':EntityInstance a :Entity1');
236236
});
237237
});
238238

@@ -252,9 +252,9 @@ describe('Test enumeration entity value', () => {
252252
.then(() => cy.get(FIELD_characteristicName).click({force: true}).get('mat-option').contains('Enumeration').click({force: true}))
253253
.then(() => cy.get(SELECTOR_searchEntityValueInputField).should('exist'))
254254
.then(() => cy.get(SELECTOR_addEntityValue).click({force: true}).wait(200))
255-
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityValue', {force: true}))
255+
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityInstance', {force: true}))
256256
.then(() => cy.get(SELECTOR_entitySaveButton).click({force: true}).wait(200))
257-
.then(() => checkMatPanelTitleValues([0], ['EntityValue']))
257+
.then(() => checkMatPanelTitleValues([0], ['EntityInstance']))
258258
.then(() => cyHelp.clickSaveButton());
259259
});
260260

@@ -515,7 +515,7 @@ describe('Test enumeration entity value', () => {
515515
);
516516
});
517517

518-
it('it should delete entity value', () => {
518+
it('it should delete entity instance', () => {
519519
cy.getHTMLCell('EntityInstance1')
520520
.click({force: true})
521521
.then(() => cy.get(SELECTOR_tbDeleteButton).click({force: true}))
@@ -573,7 +573,7 @@ describe('Test enumeration entity value', () => {
573573
.then(() => cy.shapeExists('NewEntity'));
574574
});
575575

576-
it('should create NewEntity and new entity values', () => {
576+
it('should create NewEntity and new entity instances', () => {
577577
cy.visitDefault();
578578
cy.startModelling()
579579
.wait(500)
@@ -592,9 +592,9 @@ describe('Test enumeration entity value', () => {
592592
.click({force: true}),
593593
)
594594
.then(() => cy.get(SELECTOR_addEntityValue).click({force: true}).wait(200))
595-
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityValue'))
595+
.then(() => cy.get(FIELD_entityValueName).should('exist').type('EntityInstance'))
596596
.then(() => cy.get(SELECTOR_entitySaveButton).click({force: true}).wait(200))
597-
.then(() => checkMatPanelTitleValues([0], ['EntityValue']))
597+
.then(() => checkMatPanelTitleValues([0], ['EntityInstance']))
598598
.then(() => cyHelp.clickSaveButton())
599599
.then(() => cy.shapeExists('NewEntity'));
600600
});

0 commit comments

Comments
 (0)