Skip to content

Commit

Permalink
The property label 'Asset model' has been renamed to 'Type'.
Browse files Browse the repository at this point in the history
  • Loading branch information
amar-c8y committed Mar 26, 2024
1 parent e42a1c3 commit d1c5eb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ describe('Asset Properties Widget: Configuration/View screen tests', function ()

// Verify the presence of Properties section row elements
it('TC_Asset_Properties_Widget_config_004', () => {
const labels = ['Name', 'ID', 'Asset model'];
const labels = ['Name', 'ID', 'Type'];
const keys = ['name', 'id', 'type'];
for (let i = 0; i < labels.length; i++) {
cy.get(propertyDragHandle).eq(i).should('be.visible');
Expand Down Expand Up @@ -261,7 +261,7 @@ describe('Asset Properties Widget: Configuration/View screen tests', function ()
// addeding wait so that drag will work as expected otherwise drag will not work
cy.wait(1000);
cy.get(propertyDragHandle3).dragTo(propertyDragHandle1);
cy.get(labelElement).eq(0).should('have.value', 'Asset model');
cy.get(labelElement).eq(0).should('have.value', 'Type');
cy.get(asset_properties_widget_elements.saveButton).click();
cy.get(cardTitleElement).should('contain.text', assetProperties);
cy.deleteCard();
Expand Down Expand Up @@ -511,7 +511,7 @@ describe('Asset Properties Widget: Configuration/View screen tests', function ()
it('TC_Asset_Properties_Widget_config_035', () => {
const configElement = 'c8y-asset-property-selector';
const alertMessage = ' Add and select at least one property. ';
const labels = ['Name', 'ID', 'Asset model'];
const labels = ['Name', 'ID', 'Type'];
for (let i = 0; i < labels.length; i++) {
cy.get(checkboxElement).eq(i).should('be.visible').click();
}
Expand All @@ -534,7 +534,7 @@ describe('Asset Properties Widget: Configuration/View screen tests', function ()
cy.get(cardTitleElement).should('contain.text', assetProperties);
cy.get("p[title='Name']").should('be.visible');
cy.get("p[title='ID']").should('be.visible');
cy.get("p[title='Asset model']").scrollIntoView().should('be.visible');
cy.get("p[title='Type']").scrollIntoView().should('be.visible');
cy.deleteCard();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('Device properties widget', function () {
const properties = [
'Name',
'ID',
'Asset model',
'Type',
'Notes',
'Owner',
'Last updated',
Expand Down

0 comments on commit d1c5eb3

Please sign in to comment.