Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port embed test to playwright #4440

Merged
merged 20 commits into from
Aug 14, 2024

Conversation

thecalcc
Copy link
Contributor

No description provided.

scripts/core/editor3/components/toolbar/IconButton.tsx Outdated Show resolved Hide resolved
e2e/client/playwright/authoring.spec.ts Outdated Show resolved Hide resolved
e2e/client/playwright/authoring.spec.ts Outdated Show resolved Hide resolved
e2e/client/playwright/authoring.spec.ts Outdated Show resolved Hide resolved
e2e/client/playwright/authoring.spec.ts Outdated Show resolved Hide resolved
page.locator(s('authoring', 'authoring-field=body_html')).getByRole('textbox'),
).toHaveText('test sport story body');

await page.getByRole('button', {name: 'Embed'}).click();
Copy link
Member

Choose a reason for hiding this comment

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

use a more specific selector


await page.getByRole('button', {name: 'Embed'}).click();

await page.getByPlaceholder('Enter URL or code to embed').type('https://sourcefabric.org');
Copy link
Member

Choose a reason for hiding this comment

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

use a more specific selector

e2e/client/playwright/editor3.spec.ts Outdated Show resolved Hide resolved
Copy link
Member

@tomaskikutis tomaskikutis left a comment

Choose a reason for hiding this comment

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

Let's agree that comments are only "resolved" on github by the person reviewing it. I did unresolve a few that weren't addressed.

e2e/client/playwright/editor3.spec.ts Outdated Show resolved Hide resolved
Copy link
Member

@tomaskikutis tomaskikutis left a comment

Choose a reason for hiding this comment

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

do handle conflicts

@thecalcc thecalcc requested a review from tomaskikutis August 7, 2024 12:50
Copy link
Member

@tomaskikutis tomaskikutis left a comment

Choose a reason for hiding this comment

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

if you remove data-test-id, remove data-test-value as well

@thecalcc thecalcc requested a review from tomaskikutis August 7, 2024 13:25
@thecalcc
Copy link
Contributor Author

thecalcc commented Aug 7, 2024

@tomaskikutis can you resolve all comments that are addressed in the code

Copy link
Member

@tomaskikutis tomaskikutis left a comment

Choose a reason for hiding this comment

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

All good now, let's get tests passing before merging. Unit tests you need to look at and e2e tests I'll take a look at because I saw they fail on develop.

@thecalcc thecalcc merged commit 43fe3e7 into superdesk:develop Aug 14, 2024
3 checks passed
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.

2 participants