MM-61032: Add default_team_id to accept invite flow (#28841)

* add default_team_id to accept invite api

* add team selector to accept invite flow UI

* e2e

* lint/i18n
Этот коммит содержится в:
Caleb Roseland
2024-10-18 05:26:38 -05:00
коммит произвёл GitHub
родитель 5a923e0b94
Коммит fcded9559c
16 изменённых файлов: 124 добавлений и 32 удалений

Просмотреть файл

@@ -84,6 +84,9 @@ describe('Connected Workspaces', () => {
cy.findByText('Accept a secure connection from another server');
cy.findByText('Enter the encrypted invitation code shared to you by the admin of the server you are connecting with.');
// * Verify accept disabled
cy.uiGetButton('Accept').should('be.disabled');
// # Enter org name
cy.findByRole('textbox', {name: 'Organization name'}).type(orgDisplayName);
@@ -93,6 +96,13 @@ describe('Connected Workspaces', () => {
// # Enter bad password
cy.findByRole('textbox', {name: 'Password'}).type('123abc');
// * Verify accept still disabled
cy.uiGetButton('Accept').should('be.disabled');
// # Select team
cy.findByTestId('destination-team-input').click().
findByRole('textbox').type(`${testTeam2.display_name}{enter}`);
// # Try accept
cy.uiGetButton('Accept').click();