Skip to content

Commit

Permalink
Merge branch 'SLB-454-teaser-list-follow-up' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
chindris committed Oct 27, 2024
2 parents a288b48 + dfa8f61 commit 3550f0c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
15 changes: 15 additions & 0 deletions packages/drupal/gutenberg_blocks/css/edit.css
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,18 @@ details[open] > summary svg {
.col-start-2 {
grid-column-start: 2;
}


/* Reset a few link input suggestion styles to their gutenberg editor values. */
.block-editor-inner-blocks .block-editor-link-control__search-input-wrapper {
border: 1px solid #cccccc;
font-size: 13px;
}

.block-editor-inner-blocks .block-editor-link-control__search-input-wrapper button.block-editor-link-control__search-item {
padding: 12px 16px;
}

.block-editor-inner-blocks .block-editor-link-control__search-input-wrapper button.block-editor-link-control__search-item:hover {
background-color: #ddd;
}
2 changes: 1 addition & 1 deletion packages/drupal/gutenberg_blocks/js/blocks/teaser-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ registerBlockType<{
attributes;

return (
<div className={'container-wrapper'}>
<div className={'container-wrapper !border-stone-500'}>
<div className={'container-label'}>{__('Teaser list')}</div>
<InspectorControls>
<PanelBody>
Expand Down
20 changes: 11 additions & 9 deletions tests/e2e/specs/drupal/homepage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,17 @@ test.describe('the homepage', () => {
).toBeVisible();
});

test.describe('if german is the preferred language', () => {
test.use({ locale: 'de-DE' });
test('redirects to german ', async ({ page }) => {
await page.goto(websiteUrl('/'));
const content = await page.getByRole('main');
await expect(
content.getByText('Architektur', { exact: true }),
).toBeVisible();
});
test('redirects to german if german is the preferred language', async ({
browser,
}) => {
const context = await browser.newContext({ locale: 'de-DE' });
const page = await context.newPage();
await page.goto(websiteUrl('/'));
const content = await page.getByRole('main');
await expect(
content.getByText('Architektur', { exact: true }),
).toBeVisible();
context.close();
});

test('it displays an image', async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/drupal/preview-editor-sidebar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test.describe('instant preview - toggle editor sidebar', () => {
test('toggle the preview editor sidebar', async ({ page }) => {
await page.goto(cmsUrl('/admin/content'));
await page.getByRole('link', { name: 'Add content' }).click();
await page
await (await page.locator('.layout-region--node-main'))
.getByLabel('Title', { exact: true })
.fill('Instant preview sidebar test');
await page.locator('#edit-submit').click();
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/drupal/preview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test.describe('instant preview', () => {
test('display an unpublished page in an iframe', async ({ page }) => {
await page.goto(cmsUrl('/admin/content'));
await page.getByRole('link', { name: 'Add content' }).click();
await page
await (await page.locator('.layout-region--node-main'))
.getByLabel('Title', { exact: true })
.fill('Instant preview test');
await page.locator('#edit-submit').click();
Expand Down

0 comments on commit 3550f0c

Please sign in to comment.