|
@@ -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}`,
|
|
`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,
|
|
failOnNonZeroExit: false,
|
|
|
|
|
+ timeout: 300000,
|
|
|
},
|
|
},
|
|
|
).then((result) => {
|
|
).then((result) => {
|
|
|
cy.visit(`/example`);
|
|
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')) {
|
|
if (!Cypress.env('OPENSHIFT_CI') || Cypress.env('PLUGIN_TEMPLATE_PULL_SPEC')) {
|
|
|
describe('Console plugin template test', () => {
|
|
describe('Console plugin template test', () => {
|
|
|
before(() => {
|
|
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', () => {
|
|
it('Verify the example page title', () => {
|
|
|
cy.get('[data-quickstart-id="qs-nav-home"]').click();
|
|
cy.get('[data-quickstart-id="qs-nav-home"]').click();
|
|
|
cy.get('[data-test="nav"]').contains('Plugin Example').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!',
|
|
'Hello, Plugin!',
|
|
|
);
|
|
);
|
|
|
});
|
|
});
|
|
|
|
|
+ it('Does not do much! Should fail', () => {
|
|
|
|
|
+ expect(true).to.equal(false);
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|