mirror of
https://github.com/discourse/discourse.git
synced 2024-12-23 22:04:05 +08:00
parent
6d4c6ee154
commit
b3423c40b0
app/assets/javascripts/discourse
app/lib
tests
acceptance
integration/components/admin-schema-theme-setting
plugins/chat/spec/lib/chat_sdk
spec
|
@ -434,7 +434,7 @@ class PluginApi {
|
|||
*
|
||||
* Example: to abort the expected behavior based on a condition
|
||||
* ```
|
||||
* api.registerValueTransformer("example-transformer", ({next, context}) => {
|
||||
* api.registerBehaviorTransformer("example-transformer", ({next, context}) => {
|
||||
* if (context.property) {
|
||||
* // not calling next() on a behavior transformer aborts executing the expected behavior
|
||||
*
|
||||
|
|
|
@ -70,7 +70,7 @@ acceptance("Category Edit - Security", function (needs) {
|
|||
await availableGroups.expand();
|
||||
await availableGroups.selectRowByValue("everyone");
|
||||
|
||||
assert.dom(".row-body").exists("adds back the permission tp the list");
|
||||
assert.dom(".row-body").exists("adds back the permission to the list");
|
||||
|
||||
assert
|
||||
.dom(".row-body[data-group-name='everyone'] .group-name-label")
|
||||
|
|
|
@ -121,7 +121,7 @@ module(
|
|||
assert.strictEqual(
|
||||
tree.nodes[1].children.length,
|
||||
0,
|
||||
"thie children of an active node aren't shown"
|
||||
"the children of an active node aren't shown"
|
||||
);
|
||||
|
||||
await click(tree.nodes[1].element);
|
||||
|
@ -132,7 +132,7 @@ module(
|
|||
assert.strictEqual(
|
||||
tree.nodes[0].children.length,
|
||||
0,
|
||||
"thie children of an active node aren't shown"
|
||||
"the children of an active node aren't shown"
|
||||
);
|
||||
|
||||
assert.true(tree.nodes[1].active);
|
||||
|
|
|
@ -46,7 +46,7 @@ describe ChatSDK::Thread do
|
|||
end
|
||||
end
|
||||
|
||||
context "when the threadind is not enabled" do
|
||||
context "when the threading is not enabled" do
|
||||
before { thread_1.channel.update!(threading_enabled: false) }
|
||||
|
||||
it "fails" do
|
||||
|
|
|
@ -2091,7 +2091,7 @@ RSpec.describe TopicQuery do
|
|||
)
|
||||
end
|
||||
|
||||
it "includes unread and trakced topics even if they're in a muted category" do
|
||||
it "includes unread and tracked topics even if they're in a muted category" do
|
||||
new_topic.update!(category: Fabricate(:category))
|
||||
CategoryUser.create!(
|
||||
user_id: user.id,
|
||||
|
|
|
@ -26,7 +26,7 @@ describe "Edit Category Security", type: :system do
|
|||
|
||||
before { sign_in(current_user) }
|
||||
|
||||
it "lists the groups that can access the catgory" do
|
||||
it "lists the groups that can access the category" do
|
||||
category_page.visit_security(category)
|
||||
expect(category_page).to have_public_access_message
|
||||
expect(category_permission_row).to have_group_permission(
|
||||
|
|
Loading…
Reference in New Issue
Block a user