-
Notifications
You must be signed in to change notification settings - Fork 4
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: Authors assignment not work when editing and creating new learning units #268
base: master
Are you sure you want to change the base?
Conversation
…tions back into the LessonInfoEditor
kriegst du da noch ein easy test hin, ob der button clickable ist? |
…derButton in the Lesson-editor would submit the form
… to the new return value of the AddAuthorDialog
Tests sind jetzt da. Aber die Pipeline geht kaputt. Und zwar im feature-completion test. Ich weiß nicht, ob ich daran Schuld bin oder nicht. Im Master geht das auch Kaputt. Aber hier dann auch am Anfang nicht. Wenn dieser Git Error nicht mehr da ist, muss ich schauen, wo das herkommt. (Maby ist das ja auch nur ein Lokales Problem.) |
war ein jenkins fehler |
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.
"weil es nicht anders geht", war deine Antwort auf meine Frage, was ist der mehrwehrt der user-event
-library. Das ist für mich ein Warnsignal.
ich hab es mir mal angeschaut und dir hat lediglich ein waitFor
um das expect
gefehlt. Das hättest du auch in den anderen Tests in unserer codebase nachschauen können
Bitte sei hier sorgfältiger. Der Idee der user-event
-library ja nicht schlecht, aber wir sollten sie wenn dann aus den richtigen gründen einsetzen. Ich hab die lib wieder entfernt. Siehe letzter commit
libs/feature/teaching/src/lib/lesson/forms/lesson-info.spec.tsx
Outdated
Show resolved
Hide resolved
Ich weiß nicht, wieso das so passiert. Aber wenn du waitFor nutzt, musst du auch "await" benutzen, weil die Function Async ist, sonst kann ich den Button nicht raussuchen. Denn wenn das nicht passiert, wird das |
Was wird nun aus den Tests? |
Du hast recht, ich habe ein |
…dAuthorDialogClosed to handleAddAuthor
Habe noch schnell die Namen von den Functionen angepasst, ich denke das ist jetzt Ready. |
closes #267