describe('Status in admin panel', () => {
  beforeEach(() => {
    cy.login()
  })

  it('Create, update and delete a status', () => {
    const newname = 'New test status'
    cy.visit('/admin.php?tab=4')
    cy.get('#statusName').type(newname)
    // create
    cy.get('[data-action="create-status"]').click().wait(500)
    cy.get('ul[data-table="status"]').find('li[data-statusid]').first().as('newStatus')
    cy.get('@newStatus').find('input').first().should('have.value', newname)
    cy.get('@newStatus').find('input').first().type('something')
    cy.get('@newStatus').find('[data-action="update-status"]').click()
    cy.contains('Saved').should('be.visible')
    // destroy
    cy.get('@newStatus').find('[data-action="destroy-status"]').click()
    cy.contains('Saved').should('be.visible')
  });
});

@@ -153,16 +153,24 @@
  = 'New 
+cypress 
 test sta
@@ -385,26 +385,75 @@
 atusid%5D').fi
-rs
+nd('input%5Bvalue=%22' + newname + '%22%5D').parent().paren
 t().as('newS

make the cypress status test more robust