MM-47288 refactor: convert channels/channel/ files to ts (#28483)
* refactor: convert channels/channel/ files to ts - convert js files to typescript - update types - fix lint issues Fixes: 21299 * fix: solve lint issues channels/channel - fix lint issues - udpate types * fix: adjustment to test case MM-T1687 - code reorganization for test case MM-T1687 * fix: update types on function apiCreateCustomAdmin - update types for apiCreateCustomAdmin on user.d.ts so that lint issue is solved
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
429c41747c
Коммит
23623fc9c9
2
e2e-tests/cypress/tests/support/api/role.d.ts
поставляемый
2
e2e-tests/cypress/tests/support/api/role.d.ts
поставляемый
@@ -42,7 +42,7 @@ declare namespace Cypress {
|
||||
* // do something with roles
|
||||
* });
|
||||
*/
|
||||
apiGetRolesByNames(names: string[]): Chainable<Role[]>;
|
||||
apiGetRolesByNames(names: string[]): Chainable<{roles: Role[]}>;
|
||||
|
||||
/**
|
||||
* Patch a role by ID.
|
||||
|
||||
4
e2e-tests/cypress/tests/support/api/user.d.ts
поставляемый
4
e2e-tests/cypress/tests/support/api/user.d.ts
поставляемый
@@ -193,7 +193,7 @@ declare namespace Cypress {
|
||||
*
|
||||
* @returns {UserProfile} `out.sysadmin` as `UserProfile` object
|
||||
*/
|
||||
apiCreateCustomAdmin(options: {loginAfter: boolean; hideAdminTrialModal?: boolean}): Chainable<{sysadmin: UserProfile}>;
|
||||
apiCreateCustomAdmin({loginAfter = false, hideAdminTrialModal = true} = {}): Chainable<{sysadmin: UserProfile}>;
|
||||
|
||||
/**
|
||||
* Create a new user with an options to set name prefix and be able to bypass tutorial steps.
|
||||
@@ -248,7 +248,7 @@ declare namespace Cypress {
|
||||
* // do something with users
|
||||
* });
|
||||
*/
|
||||
apiGetUsers(queryParams: Record<string, any>): Chainable<UserProfile[]>;
|
||||
apiGetUsers(queryParams: Record<string, any>): Chainable<{users: UserProfile[]}>;
|
||||
|
||||
/**
|
||||
* Get list of users that are not team members.
|
||||
|
||||
Ссылка в новой задаче
Block a user