Explorar el Código

cicd: integration test for hidden footer

jamesread hace 4 años
padre
commit
f9b6d60ca8

+ 12 - 0
integration-tests/configs/config.hiddenFooter.yaml

@@ -0,0 +1,12 @@
+#
+# Integration Test Config: General
+# 
+
+showFooter: false
+checkForUpdates: false 
+
+# Actions (buttons) to show up on the WebUI:
+actions:   
+- title: Ping example.com
+  shell: ping example.com -c 1
+  icon: ping

+ 14 - 0
integration-tests/cypress/integration/hiddenFooter/hiddenFooter.spec.js

@@ -0,0 +1,14 @@
+describe('Hidden Footer', () => {
+  beforeEach(() => {
+    cy.visit("/")
+    cy.wait(500)
+  });
+
+  it('Footer is hidden', () => {
+    cy.get('footer').then($el => {
+      expect(Cypress.dom.isHidden($el)).to.be.true
+    })
+  })
+});
+
+