Skip to content

Commit

Permalink
Testing for CustomPanel Toast
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Fitzgibbons <[email protected]>
  • Loading branch information
Peter Fitzgibbons committed Apr 21, 2023
1 parent 7cacba2 commit f8a4744
Show file tree
Hide file tree
Showing 5 changed files with 3,502 additions and 3,449 deletions.
14 changes: 10 additions & 4 deletions .cypress/integration/3_panels.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('Creating visualizations', () => {
});
});

describe('Testing panels table', () => {
describe.only('Testing panels table', () => {
beforeEach(() => {
eraseTestPanels();
moveToPanelHome();
Expand Down Expand Up @@ -567,6 +567,7 @@ const eraseLegacyPanels = () => {
'osd-xsrf': true,
},
}).then((response) => {
console.log("legacy panels to erase", response.body)
response.body.panels.map((panel) => {
cy.request({
method: 'DELETE',
Expand Down Expand Up @@ -596,6 +597,7 @@ const eraseSavedObjectPaenls = () => {
},
})
.then((response) => {
console.log("saved objects to erase", response.body)
response.body.saved_objects.map((soPanel) => {
cy.request({
method: 'DELETE',
Expand All @@ -605,6 +607,9 @@ const eraseSavedObjectPaenls = () => {
'content-type': 'application/json;charset=UTF-8',
'osd-xsrf': true,
},
}).then((response) => {
const deletedId = response;
console.log('erased SO Panel', response)
});
});
});
Expand Down Expand Up @@ -681,9 +686,10 @@ const openActionsDropdown = () => {
};

const selectThePanel = () => {
cy.get('.euiCheckbox__input[title="Select this row"]').then(() => {
cy.get('.euiCheckbox__input[title="Select this row"]').check({ force: true });
});
// cy.get('.euiCheckbox__input[title="Select this row"]').then(() => {
cy.get('.euiCheckbox__input[title="Select this row"]').check({ force: true });
cy.get('.euiTableRow-isSelected').should('exist')
// });
};

const expectToastWith = (title) => {
Expand Down
Loading

0 comments on commit f8a4744

Please sign in to comment.