Skip to content

Commit

Permalink
Testing cypress baselining
Browse files Browse the repository at this point in the history
Signed-off-by: Kshitij Tandon <[email protected]>
  • Loading branch information
tandonks committed Jan 30, 2025
1 parent dc0fbc8 commit cdb1a7c
Show file tree
Hide file tree
Showing 21 changed files with 48 additions and 99 deletions.
46 changes: 46 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
const { defineConfig } = require("cypress");

module.exports = defineConfig({
e2e: {
defaultCommandTimeout: 60000,
requestTimeout: 60000,
responseTimeout: 60000,
baseUrl: "http://localhost:5601",
viewportWidth: 2000,
viewportHeight: 1320,
env: {
openSearchUrl: "http://localhost:9200",
SECURITY_ENABLED: false,
username: "admin",
password: "admin",
},
clientCertificates: [
{
url: "https://localhost:9200/.opendistro-ism*",
ca: ["cypress/resources/root-ca.pem"],
certs: [
{
cert: "cypress/resources/kirk.pem",
key: "cypress/resources/kirk-key.pem",
passphrase: "",
},
],
},
{
url: "https://localhost:9200/.opendistro-ism-config/_update_by_query/",
ca: ["cypress/resources/root-ca.pem"],
certs: [
{
cert: "cypress/resources/kirk.pem",
key: "cypress/resources/kirk-key.pem",
passphrase: "",
},
],
},
],
setupNodeEvents(on, config) {
// implement node event listeners here
return config;
},
},
});
48 changes: 0 additions & 48 deletions cypress.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,7 @@ describe("Rollups", () => {
cy.wait("@getRollup").wait(2000);

// Click Disable button
cy.get(`[data-test-subj="disableButton"]`)
.should("not.be.disabled")
.click({ force: true });
cy.get(`[data-test-subj="disableButton"]`).should("not.be.disabled").click({ force: true });

cy.wait("@stopRollup");
cy.wait("@getRollup");
Expand All @@ -270,9 +268,7 @@ describe("Rollups", () => {
cy.wait(2000);

// Click Enable button
cy.get(`[data-test-subj="enableButton"]`)
.should("not.be.disabled")
.click({ force: true });
cy.get(`[data-test-subj="enableButton"]`).should("not.be.disabled").click({ force: true });

// Confirm we get toaster saying rollup job is enabled
cy.contains(`${ROLLUP_ID} is enabled`);
Expand Down
45 changes: 0 additions & 45 deletions cypress/plugins/index.js

This file was deleted.

File renamed without changes.

0 comments on commit cdb1a7c

Please sign in to comment.