mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-21 14:36:31 +00:00
e4e49381d8
On the phone, the admin GitHub panel showed "Latest updates from mauriceboe/TREK" and its releases, bug report, feature request and wiki links, as well as the same three links in the settings About section, all went to the old mauriceboe/TREK repository. The desktop panels already use liketrek/TREK. Cause: the phone screens kept the repository name from before the move to the liketrek organisation. Fix: MAdminGitHubPanel and MSettingsAbout now use liketrek/TREK, like GitHubPanel and AboutTab. No other user facing mauriceboe/TREK link is left in the client (the Ko-fi, Buy Me a Coffee and Docker image names are unchanged and identical on both sides). Red test: FE-MOB-SET-ABOUT-001 (new, MSettingsAbout.test.tsx) failed with "Expected the element to have attribute: href= https://github.com/liketrek/TREK/issues/new?template=bug_report.yml". Changed assertions in tests/unit/mobile/admin/MAdminGitHubPanel.test.tsx: - FE-MOB-AGH-001: wiki href was https://github.com/mauriceboe/TREK/wiki, now https://github.com/liketrek/TREK/wiki - FE-MOB-AGH-004: subtitle was "Latest updates from mauriceboe/TREK", now "Latest updates from liketrek/TREK"; GitHub link was https://github.com/mauriceboe/TREK/releases, now https://github.com/liketrek/TREK/releases
21 lines
899 B
TypeScript
21 lines
899 B
TypeScript
// FE-MOB-SET-ABOUT-001
|
|
import { describe, expect, it } from 'vitest';
|
|
import MSettingsAbout from '../../../../src/mobile/screens/settings/MSettingsAbout';
|
|
import { render, screen } from '../../../helpers/render';
|
|
|
|
describe('MSettingsAbout', () => {
|
|
it('FE-MOB-SET-ABOUT-001: points the bug, feature request and wiki links at the liketrek/TREK repository', () => {
|
|
render(<MSettingsAbout appVersion="1.0.0" />);
|
|
|
|
expect(screen.getByText('Report a Bug').closest('a')).toHaveAttribute(
|
|
'href',
|
|
'https://github.com/liketrek/TREK/issues/new?template=bug_report.yml'
|
|
);
|
|
expect(screen.getByText('Feature Request').closest('a')).toHaveAttribute(
|
|
'href',
|
|
'https://github.com/liketrek/TREK/discussions/new?category=feature-requests'
|
|
);
|
|
expect(screen.getByText('Wiki').closest('a')).toHaveAttribute('href', 'https://github.com/liketrek/TREK/wiki');
|
|
});
|
|
});
|