diff --git a/__tests__/end-to-end.js b/__tests__/end-to-end.js index b00285641..b28967fdb 100644 --- a/__tests__/end-to-end.js +++ b/__tests__/end-to-end.js @@ -915,7 +915,8 @@ describe('end-to-end', () => { await waitForAndClick(`[data-test-id="edit-user-${testUserSlug}"]`) // $FlowFixMe cryptic error that is hard to resolve :( const adminCheckbox = await page.$(`[data-test-id="app-admin-checkbox-${testUserSlug}"]`) - expect(await (await adminCheckbox.getProperty('checked')).jsonValue()).toBe(true) + const isAdmin = await (await adminCheckbox.getProperty('checked')).jsonValue() + expect(isAdmin).toBe(true) }, defaultTestTimeout, 'should allow admin user to create another user') makeTestPostLogin('should delete a user', async () => { diff --git a/lib/manager/actions/user.js b/lib/manager/actions/user.js index f53efd7f1..30cd4c091 100644 --- a/lib/manager/actions/user.js +++ b/lib/manager/actions/user.js @@ -232,7 +232,7 @@ export function updateUserData (user: any, userData: any) { const url = `/api/manager/secure/user/${user.user_id}` const payload = { user_id: profile.user_id, - app_metadata: metadata.datatools + data: metadata.datatools } let status // Make request to server