Skip to content

GPU-2653 Add UI for API Token Management - #869

Open
dominikschatz wants to merge 9 commits into
f-gpu-2631from
f-gpu-2653
Open

GPU-2653 Add UI for API Token Management#869
dominikschatz wants to merge 9 commits into
f-gpu-2631from
f-gpu-2653

Conversation

@dominikschatz

Copy link
Copy Markdown
Contributor

GPU-2653 Add UI for API Token Management

@dominikschatz
dominikschatz requested a review from deckdom August 26, 2026 06:43
import { CopyTokenModal } from '../copy-token-modal/copy-token-modal.component';
import { CreateMeshUserTokenModal } from '../create-mesh-user-token-modal/create-mesh-user-token-modal.component';

interface MeshUserTokenData {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use mesh model

></gtx-api-tokens-create-form>
}
</div>
<div class="modal-footer">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add data-action

<div class="modal-title">
<h5>{{ 'api_token.token_created' | gtxI18n }}</h5>
</div>

@dominikschatz dominikschatz Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move admin-ui copy modal to cms components, add title and translations as parameter

await page.locator('gtx-mesh-copy-token-modal button[data-action="primary"]').click();
const table = page.locator('gtx-mesh-user-token-modal').locator('gtx-mesh-user-token-table');

await expect(table.locator('div[data-id="name"]').filter({ hasText: 'Test' })).toBeVisible();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove div

const row = await findTableRowById(master, testCr.id);
const userTokenModal = await openUserTokenModal(page, row);

await userTokenModal.locator('.button-event-wrapper button[data-action="primary"]').first().click();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove button-event-wrapper

const management = tabs.locator(SELECTORS.TABS.MANAGEMENT);
await management.waitFor({ state: 'visible' });

await management.locator('gtx-mesh-login-gate .login button[data-action="primary"]').last().click();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove 343

await management.waitFor({ state: 'visible' });

await management.locator('gtx-mesh-login-gate .login button[data-action="primary"]').last().click();
await management.locator('gtx-mesh-login-gate form input[type="text"]').fill('admin');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make "admin" to constant in common.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants