missing prettified files

This commit is contained in:
Joffrey JAFFEUX
2018-06-15 18:42:20 +02:00
committed by GitHub
parent 2268e29c26
commit 60ff0e9b8c
24 changed files with 3009 additions and 689 deletions
@@ -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