1 declare namespace Cypress {
3 assertComponentInfoTitleLabelsAndValues: typeof assertComponentInfoTitleLabelsAndValues
9 function assertComponentInfoTitleLabelsAndValues(expectedTitle: string, labelsAndValues: string[][]) : void{
10 cy.getElementByDataTestsId('component-info-section-title').should('have.text', expectedTitle);
11 cy.get('.componentInfoItem').should('have.length', labelsAndValues.length);
12 labelsAndValues.forEach((tuple: string[], index: number, array: string[][]) => {
15 cy.getElementByDataTestsId('model-item-label-' + label).should('have.text', label);
16 cy.getElementByDataTestsId('model-item-value-' + label).should('have.text', value);
23 Cypress.Commands.add('assertComponentInfoTitleLabelsAndValues', assertComponentInfoTitleLabelsAndValues);