-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
No error displayed for checkbox #173
Comments
Looks like is-invalid class doesn't apply to the checkbox ActiveField's checkbox and radio function should look like this:
Currently |
I've fixed this bug such way:
|
@alexgivi would you like to submit a pull request? |
Yesterday I spent a day to understand why the error message was not shown until I came across this problem. Already it turns out for a year and a half people suffer and make crutches, but the problem has not been solved. Hmm, very sad. |
@egrekov that's OpenSource. If there's a pull request fixing it that has unit tests, we merge it right away after a short code review. |
@samdark Well, it's fixed :) |
And yet, without unit tests ;) Could you please add some? |
@bizley, some problem in the assembly of tests # docker login
Authenticating with existing credentials...
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
# make test
test -d tests/docker || git clone https://github.com/cebe/jenkins-test-docker tests/docker
cd tests/docker && git checkout -- . && git pull
Уже обновлено.
mkdir -p tests/dockerids
cd tests/docker/php && sh build.sh
building base docker image for php.
Sending build context to Docker daemon 6.144kB
Step 1/10 : FROM debian:wheezy
---> 10fcec6d95c4
Step 2/10 : RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && DEBIAN_FRONTEND=noninteractive apt-get install -y git curl vim build-essential pkg-config autoconf bison re2c libxml2-dev
---> Running in 20c0c5134467
Ign http://security.debian.org wheezy/updates Release.gpg
Ign http://deb.debian.org wheezy Release.gpg
Ign http://security.debian.org wheezy/updates Release
Ign http://deb.debian.org wheezy-updates Release.gpg
Err http://security.debian.org wheezy/updates/main amd64 Packages
Err http://security.debian.org wheezy/updates/main amd64 Packages
Ign http://deb.debian.org wheezy Release
Err http://security.debian.org wheezy/updates/main amd64 Packages
Ign http://deb.debian.org wheezy-updates Release
Err http://security.debian.org wheezy/updates/main amd64 Packages
Err http://security.debian.org wheezy/updates/main amd64 Packages
404 Not Found [IP: 151.101.2.132 80]
Err http://deb.debian.org wheezy/main amd64 Packages
404 Not Found
Err http://deb.debian.org wheezy-updates/main amd64 Packages
404 Not Found
W: Failed to fetch http://security.debian.org/debian-security/dists/wheezy/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.2.132 80]
W: Failed to fetch http://deb.debian.org/debian/dists/wheezy/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://deb.debian.org/debian/dists/wheezy-updates/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && DEBIAN_FRONTEND=noninteractive apt-get install -y git curl vim build-essential pkg-config autoconf bison re2c libxml2-dev' returned a non-zero code: 100
building docker for php php-5.6.8.
Sending build context to Docker daemon 12.29kB
Step 1/8 : FROM yiitest/php-base:latest
pull access denied for yiitest/php-base, repository does not exist or may require 'docker login'
Makefile:20: ошибка выполнения рецепта для цели «docker-php»
make: *** [docker-php] Ошибка 1``` |
Is this local docker? I'm not sure how to help you here. This part of code should be ok to test with php only, without any external services anyway. |
Yes local docker, looked 7 debians are used in tests, it is already deprecated. You tried to run tests on your own, it seems to me that they won't start either. |
@bizley Once again I looked at why the test is not being collected, it turns out that the repository is missing yiitest/php-base |
Yes, tests are passing which means nothing is broken but is there a test checking what you just added? |
root@516debc04af8:/opt/app# vendor/phpunit/phpunit/phpunit --filter ActiveFieldTest
PHPUnit 4.8.34 by Sebastian Bergmann and contributors.
Runtime: PHP 7.3.27
Configuration: /opt/app/phpunit.xml.dist
.............
Time: 2.62 seconds, Memory: 8.00MB
OK (13 tests, 13 assertions) |
What steps will reproduce the problem?
Create form that require accepting checkbox. Example:
What's expected?
Error message for required checkbox should be displayed.
What do you get instead?
There is no error for checkbox field:
However client-side validation works, so after filling form you get:
After un-filling form:
Additional info
The text was updated successfully, but these errors were encountered: