Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
bd8b3fc
Move text above link
richtabor Jun 20, 2023
e79a678
Change "URL" label to "Link"
richtabor Jun 20, 2023
f76f8a9
Style tweaks
richtabor Jun 20, 2023
c0552f5
Add chevron based advanced settings button
richtabor Jun 20, 2023
87b47c5
Adapt logic for rendering actions and settings
richtabor Jun 20, 2023
671914b
Tweaks
richtabor Jun 20, 2023
11c0998
Add proper i18n
richtabor Jun 21, 2023
ada13cb
Remove commented out style
richtabor Jun 21, 2023
37dee3e
Use $button-size-next-default-40px
richtabor Jun 21, 2023
6c550c4
Add showSettings, combine with new logic
richtabor Jun 21, 2023
b277518
Add additional translation context to advanced
richtabor Jun 21, 2023
eec4bef
Update toggle drawer name in tests
getdave Jun 22, 2023
62ef07b
Standardise query for settings toggle
getdave Jun 22, 2023
5ab42eb
Update test to check for absence of cancel button during link creation
getdave Jun 22, 2023
8c03ac1
Fix cancellation tests
getdave Jun 22, 2023
1ebaba2
Ensure label is always “Link” but remains hidden when it’s the only v…
getdave Jun 22, 2023
f6619c3
Update tests to look for “Link” instead of “URL” name for input
getdave Jun 22, 2023
c12e3ce
Update empty value UI tests to only run for editing as opposed to cre…
getdave Jun 22, 2023
3cf9343
Fix e2e test tabbing order
getdave Jun 22, 2023
f6a7c1e
Use updated terms
getdave Jun 22, 2023
e1d1305
Select settings toggle by text not aria label
getdave Jun 22, 2023
fac61cc
Fix another tabbing order bug
getdave Jun 22, 2023
c1297e3
Fix one more tabbing issue in e2e tests
getdave Jun 22, 2023
8c9f1a8
Fix final tab ordering e2e test
getdave Jun 22, 2023
1bc002e
Decouple conditions for showing action buttons from settings
getdave Jun 23, 2023
a25340b
Tweak styling to account for action buttons when there are no setting…
getdave Jun 23, 2023
531ad75
Fix test
getdave Jun 23, 2023
b3cb16f
Fix e2e test
scruffian Jun 23, 2023
86898b2
Update name of the combobox
scruffian Jun 23, 2023
e1d499b
Fix test expecting Submit button on creation
getdave Jun 23, 2023
ffb0435
Fix test by testing under edit rather than creation conditions
getdave Jun 23, 2023
a78ba7e
Rename URL to Link and avoid triggering command centre
getdave Jun 26, 2023
389cb5a
move test earlier
scruffian Jun 26, 2023
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
Fix test expecting Submit button on creation
  • Loading branch information
getdave committed Jun 26, 2023
commit e1d499ba55453fea4b27aa4a562673b103380c7e
12 changes: 6 additions & 6 deletions test/e2e/specs/editor/blocks/links.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@ test.describe( 'Links', () => {
await pageUtils.pressKeys( 'primary+k' );
await page.keyboard.type( 'w.org' );

await page
//TODO: change to a better selector when https://github.com/WordPress/gutenberg/issues/51060 is resolved.
.locator( '.block-editor-link-control' )
.getByRole( 'button', { name: 'Save' } )
.click();
await page.keyboard.press( 'Enter' );

await expect.poll( editor.getBlocks ).toMatchObject( [
{
Expand All @@ -107,7 +103,11 @@ test.describe( 'Links', () => {
await page.keyboard.type( 'wordpress.org' );

// Update the link.
await page.keyboard.press( 'Enter' );
await page
//TODO: change to a better selector when https://github.com/WordPress/gutenberg/issues/51060 is resolved.
.locator( '.block-editor-link-control' )
.getByRole( 'button', { name: 'Save' } )
.click();

// Navigate back to the popover.
await page.keyboard.press( 'ArrowLeft' );
Expand Down