feat(frontend): Add project creation wizard prototype for #49 #52

Closed
cardosofelipe wants to merge 31 commits from feature/49-project-wizard-prototype into dev
2 changed files with 8 additions and 4 deletions
Showing only changes of commit 6ea9edf3d1 - Show all commits

View File

@@ -244,7 +244,8 @@ describe('HomePage', () => {
render(<Home />);
const githubLinks = screen.getAllByRole('link', { name: /GitHub/i });
expect(githubLinks.length).toBeGreaterThan(0);
expect(githubLinks[0]).toHaveAttribute('href', expect.stringContaining('github.com'));
// Syndarix uses Gitea for version control
expect(githubLinks[0]).toHaveAttribute('href', expect.stringContaining('gitea.pragmazest.com'));
});
});
@@ -309,8 +310,9 @@ describe('HomePage', () => {
it('has external links with proper attributes', () => {
render(<Home />);
const githubLinks = screen.getAllByRole('link', { name: /GitHub/i });
// Syndarix uses Gitea for version control
const externalLink = githubLinks.find((link) =>
link.getAttribute('href')?.includes('github.com')
link.getAttribute('href')?.includes('gitea.pragmazest.com')
);
expect(externalLink).toHaveAttribute('target', '_blank');
expect(externalLink).toHaveAttribute('rel', 'noopener noreferrer');

View File

@@ -220,7 +220,8 @@ describe('Header', () => {
if (githubLinks.length > 1) {
const mobileGithubLink = githubLinks[1];
fireEvent.click(mobileGithubLink);
expect(mobileGithubLink).toHaveAttribute('href', expect.stringContaining('github.com'));
// Syndarix uses Gitea for version control
expect(mobileGithubLink).toHaveAttribute('href', expect.stringContaining('gitea.pragmazest.com'));
}
});
@@ -278,8 +279,9 @@ describe('Header', () => {
);
const githubLinks = screen.getAllByRole('link', { name: /github/i });
// Syndarix uses Gitea for version control
const externalLink = githubLinks.find((link) =>
link.getAttribute('href')?.includes('github.com')
link.getAttribute('href')?.includes('gitea.pragmazest.com')
);
expect(externalLink).toHaveAttribute('target', '_blank');