방금 첫 PR을 열었습니다 ( )
master ← graydenshand:gdev
merged 11:56AM - 04 May 21 UTC
When editing the files for a theme in the admin dashboard, typing "cmd+s" (a com… mon key-binding to save in most text editors) used to engage the browser's default "save page" dialogue.
This commit adds a key-binding to the ace editor that saves the file.
Now, the "cmd+s" (and "ctrl+s" for windows) key-binding does the same action as the save button.
_Note: I didn't write a test for this because I'm not sure where the JS tests are located. I can write a test if needed as long as someone points me in the right direction._
불행히도 CI 체크 중 하나가 실패했는데, 구체적으로 core backend > Core RSpec입니다. 실패한 특정 테스트는 TopicsController#invite when logged in when user is a group manager should attach group to the invite.입니다.
새로운 코드를 커밋하기 전에 문제를 해결했는지 확인하려면 이 테스트 실패를 로컬에서 재현하고 싶습니다.
하지만 로컬에서 테스트를 실행하는 방법에 대한 문서를 찾을 수 없습니다.
누군가 시작하는 방법을 알려줄 수 있을까요?
여기서 찾았습니다:
https://github.com/discourse/discourse/blob/master/docs/DEVELOPMENT-OSX-NATIVE.md#now-test-it-out
테스트를 실행하려면 다음을 실행하세요.
bundle exec rspec
중요하게는, 이 작업을 수행하기 전에 RAILS_ENV 환경 변수를 'test’로 설정해야 합니다.
RAILS_ENV=test
pmusaraj
(Penar Musaraj)
4월 12, 2021, 2:46오후
3
Grayden_Shand:
첫 번째 PR을 방금 열었습니다 ( )
대단하네요!
PR이 프론트엔드 코드만 다루고 있으므로, 테스트 실패가 그와 관련이 있다고 생각하지 않습니다. 백엔드 실패이며, 아마도 불안정한 테스트(가끔 실패하는 테스트)일 가능성이 높습니다.