test: bats test for Statamic Composer quickstart [skip buildkite]#7116
test: bats test for Statamic Composer quickstart [skip buildkite]#7116
Conversation
82fe721 to
5d83d26
Compare
|
the only small detail i am not sure about is why selecting YES in the prompt is not working with expect/send .... when i manually tried, it was enough to press Y (that is what i send in line 37 on the bats test followed by a return key press)... but with automatic bats tests the selection remained on NO... no biggie, that way we dont get a super user which we dont need anyway but i would have been curious why it is not picking up on the entry of |
There was a problem hiding this comment.
the only small detail i am not sure about is why selecting YES in the prompt is not working with expect/send
I don't think it's working properly, I don't see any user in the database, I noticed that it creates a file in the users folder, when I run it manually, so:
run ddev php please make:user [email protected] --password=admin1234 --super --no-interaction
assert_file_exist users/[email protected]
i am either blind or not able to search properly the net. i searched everywhere if it would be possible not to use the prompt but a command line instead. what you've posted is exactly what i was searching for. that expect and send was buggy and also not really convenient. but there is one problem. when i test locally for assert file exist bats failes on macos with zsh with but the file actually exists... on my manual test as well as commenting out the teardown and then examine the automatic bats output. in both cases the file exists with the proper content within the users directory |
Probably the same thing as here #7114: |
|
|
|
i've tried escaping the |
The Issue
How This PR Solves The Issue
Manual Testing Instructions
Automated Testing Overview
Release/Deployment Notes