-
-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Does not show borders in addon block inputs
We made the css selector more generic, so that it can also be applied to addon blocks
- Loading branch information
Showing
5 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
describe('Slate Block Tests', () => { | ||
beforeEach(() => { | ||
cy.intercept('GET', `/**/*?expand*`).as('content'); | ||
cy.intercept('GET', '/**/Document').as('schema'); | ||
|
||
// given a logged in editor and a page in edit mode | ||
cy.autologin(); | ||
cy.createContent({ | ||
contentType: 'Document', | ||
contentId: 'my-page', | ||
contentTitle: 'My Page', | ||
}); | ||
cy.visit('/my-page'); | ||
cy.wait('@content'); | ||
|
||
cy.navigate('/my-page/edit'); | ||
cy.wait('@schema'); | ||
}); | ||
|
||
it('No border in input', () => { | ||
cy.get('.block-editor-slate [role=textbox]') | ||
.click() | ||
.should('have.css', 'outline', 'rgba(0, 0, 0, 0.87) none 0px'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
describe('Title Block Tests', () => { | ||
beforeEach(() => { | ||
cy.intercept('GET', `/**/*?expand*`).as('content'); | ||
cy.intercept('GET', '/**/Document').as('schema'); | ||
|
||
// given a logged in editor and a page in edit mode | ||
cy.autologin(); | ||
cy.createContent({ | ||
contentType: 'Document', | ||
contentId: 'my-page', | ||
contentTitle: 'My Page', | ||
}); | ||
cy.visit('/my-page'); | ||
cy.wait('@content'); | ||
|
||
cy.navigate('/my-page/edit'); | ||
cy.wait('@schema'); | ||
}); | ||
|
||
it('No border in input', () => { | ||
cy.get('.block-editor-title [role=textbox]') | ||
.click() | ||
.should('have.css', 'outline', 'rgba(0, 0, 0, 0.87) none 0px'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Does not show borders in addon block inputs. @wesleybl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters