DEV: new API s/replaceCurrentUser/updateCurrentUser
This commit is contained in:
parent
fe80298ae5
commit
5bbca9b925
|
@ -1,5 +1,5 @@
|
||||||
import selectKit from "helpers/select-kit-helper";
|
import selectKit from "helpers/select-kit-helper";
|
||||||
import { acceptance, replaceCurrentUser } from "helpers/qunit-helpers";
|
import { acceptance, updateCurrentUser } from "helpers/qunit-helpers";
|
||||||
import { clearCallbacks } from "select-kit/mixins/plugin-api";
|
import { clearCallbacks } from "select-kit/mixins/plugin-api";
|
||||||
|
|
||||||
acceptance("Assign disabled mobile", {
|
acceptance("Assign disabled mobile", {
|
||||||
|
@ -12,7 +12,7 @@ acceptance("Assign disabled mobile", {
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test("Footer dropdown does not contain button", async assert => {
|
QUnit.test("Footer dropdown does not contain button", async assert => {
|
||||||
replaceCurrentUser({ can_assign: true });
|
updateCurrentUser({ can_assign: true });
|
||||||
const menu = selectKit(".topic-footer-mobile-dropdown");
|
const menu = selectKit(".topic-footer-mobile-dropdown");
|
||||||
|
|
||||||
await visit("/t/internationalization-localization/280");
|
await visit("/t/internationalization-localization/280");
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import selectKit from "helpers/select-kit-helper";
|
import selectKit from "helpers/select-kit-helper";
|
||||||
import { acceptance, replaceCurrentUser } from "helpers/qunit-helpers";
|
import { acceptance, updateCurrentUser } from "helpers/qunit-helpers";
|
||||||
import { clearCallbacks } from "select-kit/mixins/plugin-api";
|
import { clearCallbacks } from "select-kit/mixins/plugin-api";
|
||||||
|
|
||||||
acceptance("Assign mobile", {
|
acceptance("Assign mobile", {
|
||||||
|
@ -12,7 +12,7 @@ acceptance("Assign mobile", {
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test("Footer dropdown contains button", async assert => {
|
QUnit.test("Footer dropdown contains button", async assert => {
|
||||||
replaceCurrentUser({ can_assign: true });
|
updateCurrentUser({ can_assign: true });
|
||||||
const menu = selectKit(".topic-footer-mobile-dropdown");
|
const menu = selectKit(".topic-footer-mobile-dropdown");
|
||||||
|
|
||||||
await visit("/t/internationalization-localization/280");
|
await visit("/t/internationalization-localization/280");
|
||||||
|
|
Loading…
Reference in New Issue