GPU-2653 Add UI for API Token Management - #869
Open
dominikschatz wants to merge 9 commits into
Open
Conversation
dominikschatz
commented
Aug 26, 2026
| 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 { |
Contributor
Author
There was a problem hiding this comment.
use mesh model
dominikschatz
commented
Aug 26, 2026
| ></gtx-api-tokens-create-form> | ||
| } | ||
| </div> | ||
| <div class="modal-footer"> |
Contributor
Author
There was a problem hiding this comment.
add data-action
dominikschatz
commented
Aug 26, 2026
| <div class="modal-title"> | ||
| <h5>{{ 'api_token.token_created' | gtxI18n }}</h5> | ||
| </div> | ||
|
|
Contributor
Author
There was a problem hiding this comment.
move admin-ui copy modal to cms components, add title and translations as parameter
dominikschatz
commented
Aug 26, 2026
| 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(); |
dominikschatz
commented
Aug 26, 2026
| 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(); |
Contributor
Author
There was a problem hiding this comment.
remove button-event-wrapper
dominikschatz
commented
Aug 26, 2026
| 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(); |
dominikschatz
commented
Aug 26, 2026
| 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'); |
Contributor
Author
There was a problem hiding this comment.
make "admin" to constant in common.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GPU-2653 Add UI for API Token Management