describe("key_manager", () => {
  beforeEach(() => {
    cy.elektraLogin(
      Cypress.env("TEST_DOMAIN"),
      Cypress.env("TEST_USER"),
      Cypress.env("TEST_PASSWORD")
    )
  })

  it("open key manager and check new secret button", () => {
    cy.visit(`/${Cypress.env("TEST_DOMAIN")}/admin/key-manager/secrets`)
    cy.contains('[data-test=page-title]','Key Manager')
    cy.contains('a.btn','New Secret').click()
    cy.contains('New Secret')
    cy.contains('button','Create').click()
    cy.contains("Name: can't be blank")
  })

  it("open key manager and check elektra-test secret", () => {
    cy.visit(`/${Cypress.env("TEST_DOMAIN")}/admin/key-manager/secrets`)
    cy.contains('a','elektra-test').click()
    cy.contains('code','for test do not delete')
  })

  it("open key manager and check new container button", () => {
    cy.visit(`/${Cypress.env("TEST_DOMAIN")}/admin/key-manager/containers`)
    cy.contains('a.btn','New Container').click()
    cy.contains('New Container')
    cy.contains('button','Create').click()
    cy.contains("Name: can't be blank")
  })

  it("open key manager and check elektra-test-container", () => {
    cy.visit(`/${Cypress.env("TEST_DOMAIN")}/admin/key-manager/containers`)
    cy.contains('a','elektra-test-container').click()
  })

})
@@ -330,17 +330,17 @@
 ontains(
-'
+%22
 %5Bdata-te
@@ -353,19 +353,20 @@
 e-title%5D
-','
+%22, %22
 Key Mana
@@ -368,17 +368,17 @@
  Manager
-'
+%22
 )%0A    cy
@@ -383,33 +383,34 @@
 cy.contains(
-'
+%22
 a.btn
-','
+%22, %22
 New Secret')
@@ -407,17 +407,17 @@
 w Secret
-'
+%22
 ).click(
@@ -430,25 +430,25 @@
 cy.contains(
-'
+%22
 New Secret')
@@ -445,17 +445,17 @@
 w Secret
-'
+%22
 )%0A    cy
@@ -464,33 +464,34 @@
 ontains(
-'
+%22
 button
-','
+%22, %22
 Create
-'
+%22
 ).click(
@@ -685,35 +685,50 @@
  cy.
-contains('a','elektra-test'
+get(%22.secrets_table table tbody a%22).first(
 ).cl
@@ -753,39 +753,24 @@
 ins(
-'code','for test do not delete'
+%22Secret details%22
 )%0A  
@@ -933,17 +933,18 @@
 ins(
-'
+%22
 a.btn
-','
+%22, %22
 New 
@@ -944,33 +944,33 @@
 , %22New Container
-'
+%22
 ).click()%0A    cy
@@ -979,17 +979,17 @@
 ontains(
-'
+%22
 New Cont
@@ -993,17 +993,17 @@
 ontainer
-'
+%22
 )%0A    cy
@@ -1016,25 +1016,26 @@
 ins(
-'
+%22
 button
-','
+%22, %22
 Create
-'
+%22
 ).cl
@@ -1239,59 +1239,101 @@
  cy.
-contains('a','elektra-test-container').click(
+get(%22.secrets_table table tbody a%22).first().click()%0A    cy.contains(%22Container details%22
 )%0A  %7D)%0A
-%0A
 %7D)
+%0A

fix cypress tests for key manager