mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
DEV: Fix random typos (#24756)
This commit is contained in:
@ -67,7 +67,7 @@
|
|||||||
tabindex={{if button.disabled -1 0}}
|
tabindex={{if button.disabled -1 0}}
|
||||||
{{on
|
{{on
|
||||||
"click"
|
"click"
|
||||||
(fn this.handleInlineButonAction button.action)
|
(fn this.handleInlineButtonAction button.action)
|
||||||
bubbles=false
|
bubbles=false
|
||||||
}}
|
}}
|
||||||
{{on "focus" (fn this.computeIsFocused true)}}
|
{{on "focus" (fn this.computeIsFocused true)}}
|
||||||
|
@ -113,7 +113,7 @@ export default class ChatComposer extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
handleInlineButonAction(buttonAction, event) {
|
handleInlineButtonAction(buttonAction, event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
buttonAction();
|
buttonAction();
|
||||||
|
@ -9,13 +9,13 @@ RSpec.describe "User card", type: :system do
|
|||||||
before { chat_system_bootstrap }
|
before { chat_system_bootstrap }
|
||||||
|
|
||||||
shared_examples "not showing chat button" do
|
shared_examples "not showing chat button" do
|
||||||
it "doesn’t show the chat buttton" do
|
it "doesn’t show the chat button" do
|
||||||
expect(page).to have_no_css(".chat-user-card-btn")
|
expect(page).to have_no_css(".chat-user-card-btn")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
shared_examples "showing chat button" do
|
shared_examples "showing chat button" do
|
||||||
it "shows the chat buttton" do
|
it "shows the chat button" do
|
||||||
expect(page).to have_css(".chat-user-card-btn")
|
expect(page).to have_css(".chat-user-card-btn")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -9,7 +9,7 @@ RSpec.describe Jobs::CreateRecentPostSearchIndexes do
|
|||||||
before { SearchIndexer.enable }
|
before { SearchIndexer.enable }
|
||||||
|
|
||||||
describe "#execute" do
|
describe "#execute" do
|
||||||
it "should not create the index if requried posts size has not been reached" do
|
it "should not create the index if required posts size has not been reached" do
|
||||||
SiteSetting.search_recent_posts_size = 1
|
SiteSetting.search_recent_posts_size = 1
|
||||||
SiteSetting.search_enable_recent_regular_posts_offset_size = 3
|
SiteSetting.search_enable_recent_regular_posts_offset_size = 3
|
||||||
|
|
||||||
|
@ -871,7 +871,7 @@ RSpec.describe Guardian do
|
|||||||
expect(Guardian.new(admin).can_receive_post_notifications?(post)).to be_truthy
|
expect(Guardian.new(admin).can_receive_post_notifications?(post)).to be_truthy
|
||||||
end
|
end
|
||||||
|
|
||||||
it "diallows secure categories with no access" do
|
it "disallows secure categories with no access" do
|
||||||
secure_category = Fabricate(:category, read_restricted: true)
|
secure_category = Fabricate(:category, read_restricted: true)
|
||||||
post.topic.update!(category_id: secure_category.id)
|
post.topic.update!(category_id: secure_category.id)
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ RSpec.configure do |config|
|
|||||||
raise "There are pending migrations, run RAILS_ENV=test bin/rake db:migrate"
|
raise "There are pending migrations, run RAILS_ENV=test bin/rake db:migrate"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Use a file system lock to get `selenium-manager` to download the `chromedriver` binary that is requried for
|
# Use a file system lock to get `selenium-manager` to download the `chromedriver` binary that is required for
|
||||||
# system tests to support running system tests in multiple processes. If we don't download the `chromedriver` binary
|
# system tests to support running system tests in multiple processes. If we don't download the `chromedriver` binary
|
||||||
# before running system tests in multiple processes, each process will end up calling the `selenium-manager` binary
|
# before running system tests in multiple processes, each process will end up calling the `selenium-manager` binary
|
||||||
# to download the `chromedriver` binary at the same time but the problem is that the binary is being downloaded to
|
# to download the `chromedriver` binary at the same time but the problem is that the binary is being downloaded to
|
||||||
@ -371,8 +371,8 @@ RSpec.configure do |config|
|
|||||||
config.after(:each, type: :system) do |example|
|
config.after(:each, type: :system) do |example|
|
||||||
# If test passed, but we had a capybara finder timeout, raise it now
|
# If test passed, but we had a capybara finder timeout, raise it now
|
||||||
if example.exception.nil? &&
|
if example.exception.nil? &&
|
||||||
(capybara_timout_error = example.metadata[:_capybara_timeout_exception])
|
(capybara_timeout_error = example.metadata[:_capybara_timeout_exception])
|
||||||
raise capybara_timout_error
|
raise capybara_timeout_error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user