Skip to content

Commit

Permalink
[EDR Workflows][Osquery] Unskip fixed saved_queries.cy.ts test (elast…
Browse files Browse the repository at this point in the history
…ic#206430)

Unskips manually skipped test from
elastic#206417

There seems to be a discrepancy in a table element between the
Serverless and ESS environments. Specifically, in Serverless, it’s
`dataGridColumnSelectorColumnItem-osquery.disk_bytes_written`, while in
ESS, it’s
`dataGridColumnSelectorColumnItem-osquery.disk_bytes_written.number`.

I used the `^=` match operator to ensure the selector only matches the
beginning of the string, effectively creating a
`dataGridColumnSelectorColumnItem-osquery.disk_bytes_written*` pattern.
  • Loading branch information
szwarckonrad authored Jan 13, 2025
1 parent 8bc22a1 commit b29ff90
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('ALL - Saved queries', { tags: ['@ess', '@serverless'] }, () => {
cleanupCase(caseId);
});

it.skip(
it(
'should create a new query and verify: \n ' +
'- hidden columns, full screen and sorting \n' +
'- pagination \n' +
Expand Down Expand Up @@ -94,7 +94,9 @@ describe('ALL - Saved queries', { tags: ['@ess', '@serverless'] }, () => {
cy.get('[data-popover-open="true"]').should('be.visible');
cy.getBySel('dataGridColumnSelectorColumnItem-osquery.cmdline').click();
cy.getBySel('dataGridColumnSelectorColumnItem-osquery.cwd').click();
cy.getBySel('dataGridColumnSelectorColumnItem-osquery.disk_bytes_written.number').click();
cy.get(
'[data-test-subj^="dataGridColumnSelectorColumnItem-osquery.disk_bytes_written"]'
).click();
cy.getBySel('dataGridColumnSelectorButton').click();
cy.get('[data-popover-open="true"]').should('not.exist');
cy.getBySel(RESULTS_TABLE_COLUMNS_BUTTON).should('have.text', 'Columns35');
Expand Down

0 comments on commit b29ff90

Please sign in to comment.