Migration typescript/enterprise/ldap (#25840)
* refactor: migrate file ldap_group_sync_spec.js to ts - migrate file to typescript * refactor: migrate file ldap_guest_spec.ts to ts - migrate file to typescript - update data types * refactor: migrate ldap_login_spec.js to ts * refactor: migrate ldap_setting_spec.js file to ts - convert file to typescript * Fix: type error --------- Co-authored-by: Mattermost Build <build@mattermost.com> Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1e794136c8
Коммит
0aaa047ea3
11
e2e-tests/cypress/tests/support/api/preference.d.ts
поставляемый
11
e2e-tests/cypress/tests/support/api/preference.d.ts
поставляемый
@@ -70,6 +70,17 @@ declare namespace Cypress {
|
||||
*/
|
||||
apiSaveOnboardingTaskListPreference(userId: string, name: string, value: string): Chainable<Response>;
|
||||
|
||||
/**
|
||||
* Save skip steps preference.
|
||||
* @param userId - User ID
|
||||
* @param {string} value - options are 'true' or 'false'
|
||||
* @returns {Response} response: Cypress-chainable response which should have successful HTTP status of 200 OK to continue or pass.
|
||||
*
|
||||
* @example
|
||||
* cy.apiSaveSkipStepsPreference('user-id', 'true');
|
||||
*/
|
||||
apiSaveSkipStepsPreference(userId: string, value: string): Chainable<Response>;
|
||||
|
||||
/**
|
||||
* Save DM channel show preference.
|
||||
* See https://api.mattermost.com/#tag/preferences/paths/~1users~1{user_id}~1preferences/put
|
||||
|
||||
5
e2e-tests/cypress/tests/support/common_login_commands.d.ts
поставляемый
5
e2e-tests/cypress/tests/support/common_login_commands.d.ts
поставляемый
@@ -21,6 +21,11 @@ declare namespace Cypress {
|
||||
* @returns {boolean} - true if error successfully found.
|
||||
*/
|
||||
checkForLDAPError(): Chainable;
|
||||
|
||||
skipOrCreateTeam: typeof skipOrCreateTeam;
|
||||
checkLoginFailed: typeof checkLoginFailed;
|
||||
doMemberLogoutFromSignUp: typeof doMemberLogoutFromSignUp;
|
||||
doLogoutFromSignUp: typeof doLogoutFromSignUp;
|
||||
checkLoginPage: typeof checkLoginPage;
|
||||
checkLeftSideBar: typeof checkLeftSideBar;
|
||||
checkInvitePeoplePage: typeof checkInvitePeoplePage;
|
||||
|
||||
18
e2e-tests/cypress/tests/support/ldap_commands.d.ts
поставляемый
18
e2e-tests/cypress/tests/support/ldap_commands.d.ts
поставляемый
@@ -31,6 +31,24 @@ declare namespace Cypress {
|
||||
*/
|
||||
getLdapSyncJobStatus(start: number): string;
|
||||
|
||||
/**
|
||||
* doLDAPLogin is a task that runs LDAP login
|
||||
* @param {object} settings - login settings
|
||||
* @param {boolean} useEmail - true if uses email
|
||||
*/
|
||||
doLDAPLogin(settings: object = {}, useEmail = false): Chainable<void>;
|
||||
|
||||
/**
|
||||
* doLDAPLogout is a task that runs LDAP logout
|
||||
* @param {Object} settings - logout settings
|
||||
*/
|
||||
doLDAPLogout(settings: object = {}): Chainable<void>;
|
||||
|
||||
/**
|
||||
* visitLDAPSettings is a task that navigates to LDAP settings Page
|
||||
*/
|
||||
visitLDAPSettings(): Chainable<void>;
|
||||
|
||||
/**
|
||||
* waitForLdapSyncCompletion is a task that runs recursively
|
||||
* until getLdapSyncJobStatus completes or timeouts.
|
||||
|
||||
Ссылка в новой задаче
Block a user