ついに初めての 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 チェックの 1 つ(具体的には 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)
2021 年 4 月 12 日午後 2:46
3
Grayden_Shand:
初めての PR を開きました( )
素晴らしい!
あなたの PR はフロントエンドのコードのみを扱っているため、テストの失敗はそれに関連していないと思います。これはバックエンドの失敗であり、おそらく一時的な失敗(つまり、時々失敗するテスト)でしょう。