Skip to content

Commit b23a434

Browse files
committed
Exploring Cypress selectors for failing table test
1 parent 9f6d37b commit b23a434

File tree

1 file changed

+3
-1
lines changed
  • frontend/cypress/e2e/block-production/won-slots

1 file changed

+3
-1
lines changed

frontend/cypress/e2e/block-production/won-slots/table.cy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ describe('BLOCK PRODUCTION WON SLOTS TABLE', () => {
5151
.its('store')
5252
.then(getBPWonSlots)
5353
.then((state: BlockProductionWonSlotsState) => {
54-
cy.log(state.slots.toString());
54+
if (state && state.slots) {
55+
cy.log(state.slots.length.toString());
56+
}
5557
cy.log(condition(state).toString());
5658
if (condition(state)) {
5759

0 commit comments

Comments
 (0)