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

API Remove code which is being migrated to a new TinyMCE module #1544

Draft
wants to merge 1 commit into
base: 3.0
Choose a base branch
from

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli marked this pull request as draft February 18, 2025 00:53
@GuySartorelli GuySartorelli force-pushed the pulls/3.0/tinymce branch 2 times, most recently from 0efef04 to c117fa2 Compare February 25, 2025 00:36
@GuySartorelli GuySartorelli force-pushed the pulls/3.0/tinymce branch 2 times, most recently from 4b16d6e to a084368 Compare March 6, 2025 03:30
@@ -5,6 +5,7 @@
*/
require('expose-loader?exposes=InsertMediaModal!containers/InsertMediaModal/InsertMediaModal');
require('expose-loader?exposes=InsertEmbedModal!components/InsertEmbedModal/InsertEmbedModal');
require('expose-loader?exposes=AssetAdminModalActions!state/modal/ModalActions');
Copy link
Member Author

Choose a reason for hiding this comment

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

Needed so it can be used in plugins in the new repo

Comment on lines -415 to +429
// Check if the popover is open for the block
$button = $modal->find('xpath', "//button[contains(text(), '$buttonName')]");

Assert::assertNotNull($button, sprintf('Could not find button labelled "%s"', $buttonName));

$button = $this->basicContext->findNamedButton($buttonName, $modal);
if (!$button) {
Assert::assertNotNull($button, sprintf('Could not find button labelled "%s"', $buttonName));
}
Copy link
Member Author

Choose a reason for hiding this comment

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

The behat tests copied from this repo weren't playing nicely with And I press the "Save" button (it pressed the page save button instead of the modal one).
Updating to And I press the "Save" button inside the modal failed to find the button until this change was made.

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.

1 participant