-
Notifications
You must be signed in to change notification settings - Fork 15
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
Reenable block editing UI tests #1147
Merged
Merged
Commits on Apr 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8343a44 - Browse repository at this point
Copy the full SHA 8343a44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d8b060 - Browse repository at this point
Copy the full SHA 5d8b060View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e9d03a - Browse repository at this point
Copy the full SHA 3e9d03aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ecdba6 - Browse repository at this point
Copy the full SHA 3ecdba6View commit details -
This replaces the `nth()` locator with more specific ones. Using `nth()` is apparently discouraged and indeed lead to some flaky behaviour in the block editing tests. The buttons are now located by using specific unique locators. Blocks containing only text content like title and text blocks can be located by using a regex filter, while the video and series blocks can be located by combining a filter that checks the presence of specific text with a filter that checks for the absence of other specific text (that is contained in another block). However, we do need to make sure that the test steps are performed in a set order: If the text whose presence is checked is removed in a test step, that step needs to be the very last one of that specific block. Otherwise the locator will fail. This also incidentally inlines all the block editing instead of having one large function for it. I do maintain that the function was nicer, but with these new locators it has gotten somewhat pointless.
Configuration menu - View commit details
-
Copy full SHA for a08a0d8 - Browse repository at this point
Copy the full SHA a08a0d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c39433 - Browse repository at this point
Copy the full SHA 6c39433View commit details -
Since all functions and structures were either moved to more specific files or removed completely, the only thing this file did was reimport/export the test function for convenience. That can now be imported directly in the test files.
Configuration menu - View commit details
-
Copy full SHA for 8d66617 - Browse repository at this point
Copy the full SHA 8d66617View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d412df - Browse repository at this point
Copy the full SHA 9d412dfView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.