Git Product home page Git Product logo

block-unit-test's People

Contributors

jrtashjian avatar richtabor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

block-unit-test's Issues

Add support for image captions

In the galleries there are no captions on the images. These overlay the images and so there should be something visible.

There should also be captions for some of the default image styles so we can ensure they play nicely with our themes.

BTW - the plugin is really handy! :)

Additional Tests

Hi Rich

I've been testing my theme with Block Unit test and found a few more things I would like to be able to test.

Columns - the editor allows up to 10 columns, but the demo only shows 2

HR variants. A recent version of Gutenberg added additional ruler variants so we need to see all the different styles

Full width content - a number of the blocks allow for a full width layout but there aren't any tests for this.

Better test for updated content.

The test page is created once and only updated with the content included in the code when the plugin is updated.

However there are 2 issues with the way this is done right now.

Firstly, if you add/remove theme support for align-wide, and the content has already been created, it will NOT be modified to include the tests for wide aligned blocks.

Secondly, because the plugin relies on the hook upgrader_process_complete, if you update the plugin in any way other than using the admin UI - it will not be updated. (e.g if updating manually, or through composer)

I think you could handle this in a way that is more compatible with both of these use cases. Some ideas:

  • Use a filter on the content to ensure the bundled content is always used.
  • Store a hash of the content in post meta and use this to track which version of the content is stored and only update if it has changed.

Undefined variable: content in class-block-unit-test.php on line 446

I just installed this plugin. Thanks for creating it.

After activation, it shows the following error:

Notice: Undefined variable: content in /Volumes/Macintosh HD2/Sites/..../plugins/block-unit-test/class-block-unit-test.php on line 446

You're doing .= on line 112. You could either add $content = ''; on the line before or just change .= to =;

Add support for detecting wide-aligned support declared through theme.json

Currently, blocks that have wide and full align attributes are conditionally loaded by detectingget_theme_support( 'align-wide');

Since WP 5.8; support for wide and full align blocks can be added through theme.json by declaring values for the contentsize and widesize ; removing the need for a theme to specifically issue add_theme_support( 'align-wide').

This needs additional condition/logic to detect wide-align block support in theme.json; PR forthcoming.

ref: WordPress/gutenberg#35330

Abandoned plugin

It seems that this plugin is abandoned. Is there an alternative one for testing the newest blocks and the ones with updated markup (e.g. Button)?

Thanks

Gallery Blocks are now marked as invalid block content

Not sure if anyone reads this anymore; but some of the gallery blocks (not all) now display as invalid block content in the block editor.

I understand this is a gutenberg error likely (improperly migrating old, deprecating block markup/attributes) ; but new gallery blocks with new gallery block markup should also be used.

To reproduce:

  1. activate plugin
  2. visit the draft page of the block-unit-test
  3. search for Three Column, Four Images in the browser

Tested:
WordPress 5.9.1
Gutenberg 12.7.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.