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 { acceptance, replaceCurrentUser } from "helpers/qunit-helpers";
|
||||
import { acceptance, updateCurrentUser } from "helpers/qunit-helpers";
|
||||
import { clearCallbacks } from "select-kit/mixins/plugin-api";
|
||||
|
||||
acceptance("Assign disabled mobile", {
|
||||
|
@ -12,7 +12,7 @@ acceptance("Assign disabled mobile", {
|
|||
});
|
||||
|
||||
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");
|
||||
|
||||
await visit("/t/internationalization-localization/280");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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";
|
||||
|
||||
acceptance("Assign mobile", {
|
||||
|
@ -12,7 +12,7 @@ acceptance("Assign mobile", {
|
|||
});
|
||||
|
||||
QUnit.test("Footer dropdown contains button", async assert => {
|
||||
replaceCurrentUser({ can_assign: true });
|
||||
updateCurrentUser({ can_assign: true });
|
||||
const menu = selectKit(".topic-footer-mobile-dropdown");
|
||||
|
||||
await visit("/t/internationalization-localization/280");
|
||||
|
|
Loading…
Reference in New Issue