Skip to content

Conversation

@plyhun
Copy link
Contributor

@plyhun plyhun commented Oct 29, 2025

Vorsicht: tests pass only when https://github.com/gentics/cms-oss/pull/671/files is merged!

@plyhun plyhun requested a review from deckdom October 29, 2025 15:22

const dropZone = editable.locator('.form-element-drop-zone');
const textInput = page.locator('gtx-form-editor-menu .form-element-type--used-as-title')
.getByText('Eingabefeld', { exact: true });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use translated text as identifier - This would break if the tests execute with english (or any other language for that matter) as language.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A despair move -- I would be happy using a dedicated fixed ID. There is none though.

Copy link
Member

@deckdom deckdom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpicks, not required changes.
But would be good to have.


// Wait for editor to be ready
const editable = page.locator('.form-editor-form');
await editable.waitFor({ timeout: 60_000 });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please avoid such long timeouts for simple rendering.
The only place we should use these long timeouts is for aloha rendering, since these may actually take longer.
This here is direct app rendering, where the default timeout is more then enought.

import { AUTH } from './common';
import { editorAction, expectItemOffline, expectItemPublished, findItem, findList, itemAction, selectNode } from './helpers';
import { editorAction, expectItemOffline, expectItemPublished, findItem, findList, itemAction, selectNode, getAlohaIFrame } from './helpers';
import { has } from 'lodash-es';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it isn't used, then please don't import it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants