Skip to content

Commit

Permalink
Test border in existent test
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleybl committed Mar 20, 2024
1 parent 22ab883 commit 768f11f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/volto/cypress/tests/core/blocks/blocks-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ describe('Table Block Tests', () => {
// Edit
cy.addNewBlock('table');
cy.wait(2000);

// No border in input
cy.get('.block-editor-slateTable [role=textbox]').should('be.visible');
cy.get('.block-editor-slateTable [role=textbox]')
.first()
.click()
.should('have.css', 'outline', 'rgb(135, 143, 147) none 0px');

cy.get(
'.celled.fixed.table thead tr th:first-child() [contenteditable="true"]',
)
Expand Down Expand Up @@ -124,13 +132,4 @@ describe('Table Block Tests', () => {
'.celled.fixed.table tbody tr:first-child() td:nth-child(2)',
).contains('column 2 / row 2');
});

it('No border in input', () => {
cy.addNewBlock('table');
cy.get('.block-editor-slateTable [role=textbox]').should('be.visible');
cy.get('.block-editor-slateTable [role=textbox]')
.first()
.click()
.should('have.css', 'outline', 'rgb(135, 143, 147) none 0px');
});
});

0 comments on commit 768f11f

Please sign in to comment.