missing prettified files
This commit is contained in:
@@ -13,32 +13,41 @@ acceptance("Poll Builder - polls are disabled", {
|
||||
}
|
||||
});
|
||||
|
||||
test("regular user - sufficient trust level", (assert) => {
|
||||
test("regular user - sufficient trust level", assert => {
|
||||
replaceCurrentUser({ staff: false, trust_level: 3 });
|
||||
|
||||
displayPollBuilderButton();
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(!exists(".select-kit-row[title='Build Poll']"), "it hides the builder button");
|
||||
assert.ok(
|
||||
!exists(".select-kit-row[title='Build Poll']"),
|
||||
"it hides the builder button"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
test("regular user - insufficient trust level", (assert) => {
|
||||
test("regular user - insufficient trust level", assert => {
|
||||
replaceCurrentUser({ staff: false, trust_level: 1 });
|
||||
|
||||
displayPollBuilderButton();
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(!exists(".select-kit-row[title='Build Poll']"), "it hides the builder button");
|
||||
assert.ok(
|
||||
!exists(".select-kit-row[title='Build Poll']"),
|
||||
"it hides the builder button"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
test("staff", (assert) => {
|
||||
test("staff", assert => {
|
||||
replaceCurrentUser({ staff: true });
|
||||
|
||||
displayPollBuilderButton();
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(!exists(".select-kit-row[title='Build Poll']"), "it hides the builder button");
|
||||
assert.ok(
|
||||
!exists(".select-kit-row[title='Build Poll']"),
|
||||
"it hides the builder button"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -13,32 +13,41 @@ acceptance("Poll Builder - polls are enabled", {
|
||||
}
|
||||
});
|
||||
|
||||
test("regular user - sufficient trust level", (assert) => {
|
||||
test("regular user - sufficient trust level", assert => {
|
||||
replaceCurrentUser({ staff: false, trust_level: 1 });
|
||||
|
||||
displayPollBuilderButton();
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(exists(".select-kit-row[title='Build Poll']"), "it shows the builder button");
|
||||
assert.ok(
|
||||
exists(".select-kit-row[title='Build Poll']"),
|
||||
"it shows the builder button"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
test("regular user - insufficient trust level", (assert) => {
|
||||
test("regular user - insufficient trust level", assert => {
|
||||
replaceCurrentUser({ staff: false, trust_level: 0 });
|
||||
|
||||
displayPollBuilderButton();
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(!exists(".select-kit-row[title='Build Poll']"), "it hides the builder button");
|
||||
assert.ok(
|
||||
!exists(".select-kit-row[title='Build Poll']"),
|
||||
"it hides the builder button"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
test("staff - with insufficient trust level", (assert) => {
|
||||
test("staff - with insufficient trust level", assert => {
|
||||
replaceCurrentUser({ staff: true, trust_level: 0 });
|
||||
|
||||
displayPollBuilderButton();
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(exists(".select-kit-row[title='Build Poll']"), "it shows the builder button");
|
||||
assert.ok(
|
||||
exists(".select-kit-row[title='Build Poll']"),
|
||||
"it shows the builder button"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user