Bladeren bron

add timeout

CYRIL AJIEH 3 jaren geleden
bovenliggende
commit
7764add2cc
1 gewijzigde bestanden met toevoegingen van 17 en 0 verwijderingen
  1. 17 0
      integration-tests/tests/example-page.cy.ts

+ 17 - 0
integration-tests/tests/example-page.cy.ts

@@ -10,6 +10,7 @@ const installHelmChart = (path: string) => {
     `cd ../../console-plugin-template && ${path} upgrade -i ${PLUGIN_TEMPLATE_NAME} charts/openshift-console-plugin -n ${PLUGIN_TEMPLATE_NAME} --create-namespace --set plugin.image=${PLUGIN_TEMPLATE_PULL_SPEC}`,
     {
       failOnNonZeroExit: false,
+      timeout: 300000,
     },
   ).then((result) => {
     cy.visit(`/example`);
@@ -30,6 +31,16 @@ const deleteHelmChart = (path: string) => {
   });
 };
 
+// Adding this to further debug the failing test issues in CI
+describe('My First Test without installing hel chart', () => {
+  it('Does not do much! Should pass', () => {
+    expect(true).to.equal(true);
+  });
+  it('Does not do much! Should fail', () => {
+    expect(true).to.equal(false);
+  });
+});
+
 if (!Cypress.env('OPENSHIFT_CI') || Cypress.env('PLUGIN_TEMPLATE_PULL_SPEC')) {
   describe('Console plugin template test', () => {
     before(() => {
@@ -70,6 +81,9 @@ if (!Cypress.env('OPENSHIFT_CI') || Cypress.env('PLUGIN_TEMPLATE_PULL_SPEC')) {
       }
     });
 
+    it('Does not do much! Should pass', () => {
+      expect(true).to.equal(true);
+    });
     it('Verify the example page title', () => {
       cy.get('[data-quickstart-id="qs-nav-home"]').click();
       cy.get('[data-test="nav"]').contains('Plugin Example').click();
@@ -79,5 +93,8 @@ if (!Cypress.env('OPENSHIFT_CI') || Cypress.env('PLUGIN_TEMPLATE_PULL_SPEC')) {
         'Hello, Plugin!',
       );
     });
+    it('Does not do much! Should fail', () => {
+      expect(true).to.equal(false);
+    });
   });
 }