Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
8da3a6a
clickthrough for template part
Addison-Stavlo Mar 23, 2021
6cbfb21
make store names more consistent and accurate
Addison-Stavlo Mar 23, 2021
89f6cb8
remove unnecessary selector change
Addison-Stavlo Mar 23, 2021
9b685c0
move color from hover to selected, add opacity value
Addison-Stavlo Mar 24, 2021
5d363d7
Merge branch 'trunk' into try/template-part-clickthrough-selection
jameskoster Apr 8, 2021
51b0a9f
Add hover overlay
jameskoster Apr 8, 2021
562a393
rebase master
Addison-Stavlo Apr 22, 2021
e16a091
bleh resizing issues
Addison-Stavlo Apr 22, 2021
f27bcb2
kind of working...
Addison-Stavlo Apr 22, 2021
6eb82de
remove unnecessary popover goo
Addison-Stavlo Apr 22, 2021
e5d4f3f
fix for nested template parts and selection bleeding out of boundary
Addison-Stavlo Apr 23, 2021
621dcd9
remove unnecessary effect/state
Addison-Stavlo Apr 23, 2021
bcbabf9
fix resizing issue
Addison-Stavlo Apr 28, 2021
0d45917
try only selected color when focused
Addison-Stavlo Apr 28, 2021
a3e35e6
cleanup css
Addison-Stavlo Apr 28, 2021
a1ae072
try overlay for initial selection only
Addison-Stavlo Apr 28, 2021
7d74900
enable drag and drop
Addison-Stavlo Apr 30, 2021
0550d76
only show borders on drag and drop
Addison-Stavlo Apr 30, 2021
5272c12
ensure background color not on drag and drop
Addison-Stavlo Apr 30, 2021
8085ce9
apply to reusable blocks
Addison-Stavlo Apr 30, 2021
fd702eb
rebase trunk
Addison-Stavlo May 4, 2021
5351165
fix e2e tests
Addison-Stavlo May 4, 2021
8ff4b94
try add basic test
Addison-Stavlo May 4, 2021
b760a07
try fix test
Addison-Stavlo May 4, 2021
8639351
only use the afterEach where needed
Addison-Stavlo May 4, 2021
08ecb26
use css vars
Addison-Stavlo May 4, 2021
1d0d27b
rebase trunk
Addison-Stavlo May 4, 2021
cf2b380
merge trunk
Addison-Stavlo May 5, 2021
00218e0
fix border color
Addison-Stavlo May 6, 2021
35d61f4
fix block toolbar issue
Addison-Stavlo May 6, 2021
882fbf8
fix width on classic themes
Addison-Stavlo May 7, 2021
15157e9
fix width by moving overlay inside block wrapper
Addison-Stavlo May 7, 2021
f4b6f43
fix bug with selection from list view
Addison-Stavlo May 7, 2021
84c686f
add condition to dismissing
Addison-Stavlo May 7, 2021
b00bb3f
show overlay when highlighting list view
Addison-Stavlo May 7, 2021
d52dc45
use selector for highlight style
Addison-Stavlo May 10, 2021
ff04eb3
refactor and comments
Addison-Stavlo May 10, 2021
57e6a8d
position overlay above resize containers
Addison-Stavlo May 10, 2021
6a6ad3a
fix nested entity test
Addison-Stavlo May 10, 2021
2fe7645
fix template part test
Addison-Stavlo May 10, 2021
5344a22
fix intermittent errors on conversion tests
Addison-Stavlo May 10, 2021
3114fdf
handle conflict/rebase trunk
Addison-Stavlo May 11, 2021
3a3f398
remove box shadow on hover - block hover style will already be present
Addison-Stavlo May 11, 2021
ba5decc
add border back to overlay
Addison-Stavlo May 19, 2021
6055b49
use blockProps in innerBlockProps as well
Addison-Stavlo May 19, 2021
a471f05
cleanup which blockProps are passed to innerBlockProps
Addison-Stavlo May 20, 2021
bdd3ad3
rebase trunk
Addison-Stavlo Jun 16, 2021
8f7d8be
use component as wrapper
Addison-Stavlo Jun 16, 2021
2bf4aca
remove unnecessary layout selectors on TP e2es
Addison-Stavlo Jun 16, 2021
a7ea5e4
fix reusable blocks test xpath
Addison-Stavlo Jun 16, 2021
58cdcf5
rebase trunk
Addison-Stavlo Jun 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unnecessary layout selectors on TP e2es
  • Loading branch information
Addison-Stavlo committed Jun 16, 2021
commit 2bf4aca7e56f0b5002850d037951c699071e099c
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,10 @@ describe( 'Multi-entity editor states', () => {
await canvas().click( '.wp-block-template-part' );
// Select child TP to unlock selecting content.
await canvas().click(
'.wp-block-template-part.block-editor-block-list__layout .wp-block-template-part'
'.wp-block-template-part .wp-block-template-part'
);
await canvas().click(
'.wp-block-template-part.block-editor-block-list__layout .wp-block-template-part .wp-block[data-type="core/paragraph"]'
'.wp-block-template-part .wp-block-template-part .wp-block[data-type="core/paragraph"]'
);
await page.keyboard.type( 'Nested test words!' );

Expand Down
12 changes: 6 additions & 6 deletions packages/e2e-tests/specs/experiments/template-part.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe( 'Template Part', () => {
await updateHeader( 'Header Template Part 456' );

const initialTemplateParts = await canvas().$$(
'.wp-block-template-part.block-editor-block-list__layout'
'.wp-block-template-part'
);

// Select the header template part block.
Expand All @@ -129,7 +129,7 @@ describe( 'Template Part', () => {

// Verify there is one less template part on the page.
const finalTemplateParts = await canvas().$$(
'.wp-block-template-part.block-editor-block-list__layout'
'.wp-block-template-part'
);
expect(
initialTemplateParts.length - finalTemplateParts.length
Expand Down Expand Up @@ -175,7 +175,7 @@ describe( 'Template Part', () => {
it( 'Should convert selected block to template part', async () => {
await awaitHeaderAndFooterLoad();
const initialTemplateParts = await canvas().$$(
'.wp-block-template-part.block-editor-block-list__layout'
'.wp-block-template-part'
);

// Add some block and select it.
Expand Down Expand Up @@ -203,7 +203,7 @@ describe( 'Template Part', () => {

// Verify there is 1 more template part on the page than previously.
const finalTemplateParts = await canvas().$$(
'.wp-block-template-part.block-editor-block-list__layout'
'.wp-block-template-part'
);
expect(
finalTemplateParts.length - initialTemplateParts.length
Expand All @@ -213,7 +213,7 @@ describe( 'Template Part', () => {
it( 'Should convert multiple selected blocks to template part', async () => {
await awaitHeaderAndFooterLoad();
const initialTemplateParts = await canvas().$$(
'.wp-block-template-part.block-editor-block-list__layout'
'.wp-block-template-part'
);

// Add two blocks and select them.
Expand Down Expand Up @@ -253,7 +253,7 @@ describe( 'Template Part', () => {

// Verify there is 1 more template part on the page than previously.
const finalTemplateParts = await canvas().$$(
'.wp-block-template-part.block-editor-block-list__layout'
'.wp-block-template-part'
);
expect(
finalTemplateParts.length - initialTemplateParts.length
Expand Down