-
Notifications
You must be signed in to change notification settings - Fork 105
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
Fix tests - do not rely on hardcoded/expected names #1245
Merged
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b0ed358
init
ibelar ff3bd91
Apply fixes from StyleCI
ibelar 3a9e2f0
wip
ibelar b2a5c41
Merge branch 'fix/unit-test-url' of https://github.com/atk4/ui into f…
ibelar aad6639
clean up unit test - add behat test
ibelar aafa316
final test
ibelar a457659
added basic action executor test in behat
ibelar 71e7b4f
remove template from console output
ibelar f344249
Fix missing DIContainerTrait when StaticAddToTrait is used
mvorisek a83dc81
Fix missing DIContainerTrait when StaticAddToTrait is used
mvorisek 78e1d09
Merge branch 'develop' into fix/unit-test-url
mvorisek 6a6b03e
Merge branch 'fix_for_new_factory' into fix/unit-test-url
mvorisek 5e4b2af
extra changes for merge
mvorisek 035e349
Merge branch 'fix/unit-test-url' of https://github.com/atk4/ui into f…
ibelar e04b328
fix hardcode column name
ibelar 0a72253
Apply fixes from StyleCI
ibelar a2d2a61
cs fixer
ibelar 37a3b67
move utility function to trait
ibelar 8a8d6a4
cs fixer
ibelar 27a3f75
adding behat test for grid search
ibelar 34daf33
refine search to kingdom only
ibelar 5fc3b5c
wait for toast to hide
ibelar 036291f
add crud testing in behat
ibelar cd275e2
replace jsNotify coverage
ibelar 18bebc2
Merge branch 'develop' into fix/unit-test-url
ibelar 959ba1b
Fix CS fixer config for "Callable" class
mvorisek 30ca774
Refactor "I Wait x" to "I sleep x ms"
mvorisek 2225c32
add FeatureContext::getSession() return type
mvorisek 4a99f03
fix CS
mvorisek 8c03449
add NS to FeatureContext
mvorisek 3899e7a
fix bootstrap autoload/path
mvorisek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ibelar better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, in Behat feature step, it should represent a user action interacting with the browser. A user would rather 'wait' then 'sleep' before doing another action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept all other (non-dummy) waits. But as dummy wait() (without test function) is a sleep (correct me if I am wrong), then sleep is much more self explaining.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may have to wait until dom element finishes transitioning, but you only know visually, but as a user, you are still waiting not falling asleep. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;) then, now it is much clearer if a user sleep for a fixed TIME or wait (ie. with fixed TIMEOUT, but TIME can be shorter) for something.
I retested this PR and all fixed names are solved. Great work! Can we merge or do you have more ideas to add?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, if you sleep in front of your computer, you might have a very boring app in front of you. :-) Go ahead, we can merge.