mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 08:33:43 +08:00
parent
6d4c6ee154
commit
b3423c40b0
|
@ -434,7 +434,7 @@ class PluginApi {
|
||||||
*
|
*
|
||||||
* Example: to abort the expected behavior based on a condition
|
* 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) {
|
* if (context.property) {
|
||||||
* // not calling next() on a behavior transformer aborts executing the expected behavior
|
* // 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.expand();
|
||||||
await availableGroups.selectRowByValue("everyone");
|
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
|
assert
|
||||||
.dom(".row-body[data-group-name='everyone'] .group-name-label")
|
.dom(".row-body[data-group-name='everyone'] .group-name-label")
|
||||||
|
|
|
@ -121,7 +121,7 @@ module(
|
||||||
assert.strictEqual(
|
assert.strictEqual(
|
||||||
tree.nodes[1].children.length,
|
tree.nodes[1].children.length,
|
||||||
0,
|
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);
|
await click(tree.nodes[1].element);
|
||||||
|
@ -132,7 +132,7 @@ module(
|
||||||
assert.strictEqual(
|
assert.strictEqual(
|
||||||
tree.nodes[0].children.length,
|
tree.nodes[0].children.length,
|
||||||
0,
|
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);
|
assert.true(tree.nodes[1].active);
|
||||||
|
|
|
@ -46,7 +46,7 @@ describe ChatSDK::Thread do
|
||||||
end
|
end
|
||||||
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) }
|
before { thread_1.channel.update!(threading_enabled: false) }
|
||||||
|
|
||||||
it "fails" do
|
it "fails" do
|
||||||
|
|
|
@ -2091,7 +2091,7 @@ RSpec.describe TopicQuery do
|
||||||
)
|
)
|
||||||
end
|
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))
|
new_topic.update!(category: Fabricate(:category))
|
||||||
CategoryUser.create!(
|
CategoryUser.create!(
|
||||||
user_id: user.id,
|
user_id: user.id,
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe "Edit Category Security", type: :system do
|
||||||
|
|
||||||
before { sign_in(current_user) }
|
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)
|
category_page.visit_security(category)
|
||||||
expect(category_page).to have_public_access_message
|
expect(category_page).to have_public_access_message
|
||||||
expect(category_permission_row).to have_group_permission(
|
expect(category_permission_row).to have_group_permission(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user