Skip to content

Commit b50f1c4

Browse files
committedMar 13, 2025
fix test failures
1 parent 0601da4 commit b50f1c4

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed
 

‎packages/browser-tests/cypress/commands.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,9 @@ Cypress.Commands.add("refreshSchema", () => {
290290
});
291291

292292
Cypress.Commands.add("expandTables", () => {
293-
// Only try to click if the expand button exists
294-
cy.getByDataHook("expand-tables", { exist: false }).then(($el) => {
295-
if ($el.length > 0) {
296-
cy.wrap($el).click();
293+
cy.get("body").then((body) => {
294+
if (body.find('[data-hook="expand-tables"]').length > 0) {
295+
cy.get('[data-hook="expand-tables"]').click();
297296
}
298297
});
299298
});

‎packages/browser-tests/cypress/integration/console/schema.spec.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ describe("questdb schema with working tables", () => {
3030

3131
it("should filter the table with input field", () => {
3232
// Table name search
33-
cy.expandTables();
3433
cy.get('input[name="table_filter"]').type("btc_trades");
3534
cy.getByDataHook("schema-search-clear-button").should("exist");
3635
cy.getByDataHook("schema-table-title").should("contain", "btc_trades");
@@ -62,7 +61,6 @@ describe("questdb schema with suspended tables with Linux OS error codes", () =>
6261
tables.forEach((table) => {
6362
cy.createTable(table);
6463
});
65-
cy.expandTables();
6664
cy.refreshSchema();
6765
cy.typeQuery(
6866
"ALTER TABLE btc_trades SUSPEND WAL WITH 24, 'Too many open files';"
@@ -81,7 +79,7 @@ describe("questdb schema with suspended tables with Linux OS error codes", () =>
8179
cy.expandTables();
8280
});
8381

84-
it.only("should work with 2 suspended tables, btc_trades and ecommerce_stats", () => {
82+
it("should work with 2 suspended tables, btc_trades and ecommerce_stats", () => {
8583
cy.getByDataHook("schema-filter-suspended-button").should(
8684
"not.be.disabled"
8785
);
@@ -144,7 +142,6 @@ describe("table select UI", () => {
144142
tables.forEach((table) => {
145143
cy.createTable(table);
146144
});
147-
cy.expandTables();
148145
cy.refreshSchema();
149146
});
150147
beforeEach(() => {

0 commit comments

Comments
 (0)
Failed to load comments.