mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-24 20:47:30 +00:00
fix(ui): use correct branch name in branch tag selector (#7575)
Regression from: https://codeberg.org/forgejo/forgejo/pulls/7571 Needed for: https://codeberg.org/forgejo/forgejo/pulls/7574 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7575 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Beowulf <beowulf@beocode.eu> Co-committed-by: Beowulf <beowulf@beocode.eu>
This commit is contained in:
parent
3f673ce4d4
commit
9a4ded7d80
2 changed files with 4 additions and 2 deletions
|
@ -27,7 +27,9 @@ test('Branch selector commit icon', async ({page}) => {
|
|||
expect(response?.status()).toBe(200);
|
||||
|
||||
await expect(page.locator('.branch-dropdown-button svg.octicon-git-branch')).toBeVisible();
|
||||
await expect(page.locator('.branch-dropdown-button')).toHaveText('master');
|
||||
|
||||
await page.goto('/user2/repo1/src/commit/65f1bf27bc');
|
||||
await page.goto('/user2/repo1/src/commit/65f1bf27bc3bf70f64657658635e66094edbcb4d');
|
||||
await expect(page.locator('.branch-dropdown-button svg.octicon-git-commit')).toBeVisible();
|
||||
await expect(page.locator('.branch-dropdown-button')).toHaveText('65f1bf27bc');
|
||||
});
|
||||
|
|
|
@ -56,7 +56,7 @@ const sfc = {
|
|||
this.refNameText = this.commitIdShort;
|
||||
} else if (this.viewType === 'branch') {
|
||||
this.isViewBranch = true;
|
||||
this.refNameText = this.viewType;
|
||||
this.refNameText = this.branchName;
|
||||
} else {
|
||||
this.isViewTag = true;
|
||||
this.refNameText = this.tagName;
|
||||
|
|
Loading…
Add table
Reference in a new issue