-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from liip/feat/modernize
feat(): Modernize all the things
- Loading branch information
Showing
51 changed files
with
4,491 additions
and
5,226 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '6010ac73ad30738b341d'); | ||
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '9b6fd2a0b07ab4882cb6'); |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,47 @@ | ||
/// <reference types="Cypress" /> | ||
|
||
describe( 'Column Block Bootstrap 4', () => { | ||
before( () => { | ||
cy.loginUser(); | ||
cy.activatePlugin( 'wp-bootstrap-blocks-test-bootstrap-v4' ); | ||
} ); | ||
|
||
after( () => { | ||
cy.loginUser(); | ||
cy.deactivatePlugin( 'wp-bootstrap-blocks-test-bootstrap-v4' ); | ||
} ); | ||
|
||
beforeEach( () => { | ||
cy.loginUser(); | ||
cy.createNewPost(); | ||
} ); | ||
|
||
it( 'Should not display xxl breakpoint options if run with Bootstrap 4', () => { | ||
cy.insertRowBlock(); | ||
cy.ensureSidebarOpened(); | ||
|
||
// Select first column block | ||
cy.selectColumnBlock(); | ||
cy.openSidebarPanelWithTitle( 'Column size' ); | ||
|
||
// Xl column count option should exist | ||
cy.xpath( | ||
'//label[contains(@class,"components-base-control__label")][contains(text(),"Xl Column count")]' | ||
).should( 'exist' ); | ||
|
||
// Xxl column count option should not exist | ||
cy.xpath( | ||
'//label[contains(@class,"components-base-control__label")][contains(text(),"Xxl Column count")]' | ||
).should( 'not.exist' ); | ||
|
||
// Xl equal-width option should exist | ||
cy.xpath( | ||
'//label[contains(@class,"components-checkbox-control__label")][contains(text(),"Xl equal-width")]' | ||
).should( 'exist' ); | ||
|
||
// Xxl equal-width option should not exist | ||
cy.xpath( | ||
'//label[contains(@class,"components-checkbox-control__label")][contains(text(),"Xxl equal-width")]' | ||
).should( 'not.exist' ); | ||
} ); | ||
} ); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
14 changes: 7 additions & 7 deletions
14
...2e/container/container-bootstrap-v5.cy.js → ...2e/container/container-bootstrap-v4.cy.js
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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
/// <reference types="Cypress" /> | ||
|
||
describe( 'Container Block Bootstrap 5', () => { | ||
describe( 'Container Block Bootstrap 4', () => { | ||
before( () => { | ||
cy.loginUser(); | ||
cy.activatePlugin( 'wp-bootstrap-blocks-test-bootstrap-v5' ); | ||
cy.activatePlugin( 'wp-bootstrap-blocks-test-bootstrap-v4' ); | ||
} ); | ||
|
||
after( () => { | ||
cy.loginUser(); | ||
cy.deactivatePlugin( 'wp-bootstrap-blocks-test-bootstrap-v5' ); | ||
cy.deactivatePlugin( 'wp-bootstrap-blocks-test-bootstrap-v4' ); | ||
} ); | ||
|
||
beforeEach( () => { | ||
cy.loginUser(); | ||
cy.createNewPost(); | ||
} ); | ||
|
||
it( 'Should display xxl breakpoint', () => { | ||
it( 'Should not display xxl breakpoint options if run with Bootstrap 4', () => { | ||
cy.insertContainerBlock(); | ||
cy.selectContainerBlock(); | ||
cy.ensureSidebarOpened(); | ||
|
||
cy.xpath( | ||
`//label[contains(@class,"components-input-control__label")][contains(text(),"Fluid Breakpoint")]/parent::div/following-sibling::div/select[contains(@class,"components-select-control__input")]/option` | ||
).should( 'have.length', 6 ); | ||
).should( 'have.length', 5 ); | ||
|
||
// xxl option should exist | ||
// xxl option should not exist | ||
cy.xpath( | ||
`//label[contains(@class,"components-input-control__label")][contains(text(),"Fluid Breakpoint")]/parent::div/following-sibling::div/select[contains(@class,"components-select-control__input")]/option[@value='xxl']` | ||
).should( 'have.length', 1 ); | ||
).should( 'not.exist' ); | ||
} ); | ||
} ); |
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
Oops, something went wrong.