diff --git a/packages/app/cypress/component/footer.cy.tsx b/packages/app/cypress/component/footer.cy.tsx
index 15c1baa..5c1dcb3 100644
--- a/packages/app/cypress/component/footer.cy.tsx
+++ b/packages/app/cypress/component/footer.cy.tsx
@@ -25,48 +25,45 @@ describe('Footer', () => {
cy.get('[data-testid="footer-copyright"]').should('contain', year);
});
- it('shows the GitHub star CTA linking to GitHub repo', () => {
+ it('shows the GitHub star CTA', () => {
cy.get('[data-testid="footer-star-cta"]').should('be.visible');
- cy.get('[data-testid="footer-star-cta"]')
- .should('have.attr', 'href')
- .and('include', 'github.com/SemiAnalysisAI/InferenceX');
- });
-
- it('footer star CTA opens in new tab', () => {
- cy.get('[data-testid="footer-star-cta"]').should('have.attr', 'target', '_blank');
+ cy.get('[data-testid="footer-star-cta"]').should('contain', 'Star');
});
it('shows social share buttons', () => {
- cy.get('[data-testid="social-share-buttons"]').should('be.visible');
+ cy.get('[data-testid="footer-social-buttons"]').should('be.visible');
+ cy.get('[data-testid="footer-social-buttons"]')
+ .find('button')
+ .should('have.length.greaterThan', 1);
});
it('has Privacy Policy link', () => {
- cy.get('[data-testid="footer"]')
- .contains('Privacy Policy')
+ cy.get('[data-testid="footer-link-privacy"]')
.should('have.attr', 'href')
.and('include', 'semianalysis.com/privacy-policy');
});
it('has Cookie Policy link', () => {
- cy.get('[data-testid="footer"]')
- .contains('Cookie Policy')
+ cy.get('[data-testid="footer-link-cookies"]')
.should('have.attr', 'href')
.and('include', 'semianalysis.com/cookie-policy');
});
- it('has Contribute link pointing to GitHub', () => {
- cy.get('[data-testid="footer"]')
- .contains('Contribute')
+ it('has Contribute section with GitHub links', () => {
+ cy.get('[data-testid="footer-link-benchmarks"]')
.should('have.attr', 'href')
.and('include', 'github.com/SemiAnalysisAI/InferenceX');
+ cy.get('[data-testid="footer-link-frontend"]')
+ .should('have.attr', 'href')
+ .and('include', 'github.com/SemiAnalysisAI/InferenceX-app');
});
it('shows the SemiAnalysis logo', () => {
- cy.get('[data-testid="footer"]').find('img[alt="SemiAnalysis logo"]').should('exist');
+ cy.get('[data-testid="footer-brand"]').find('img[alt="SemiAnalysis logo"]').should('exist');
});
it('all external links open in a new tab', () => {
- cy.get('[data-testid="footer"]')
+ cy.get('[data-testid="footer-links"]')
.find('a[target="_blank"]')
.should('have.length.greaterThan', 0);
});
diff --git a/packages/app/cypress/component/social-share.cy.tsx b/packages/app/cypress/component/social-share.cy.tsx
index 471eb76..4102410 100644
--- a/packages/app/cypress/component/social-share.cy.tsx
+++ b/packages/app/cypress/component/social-share.cy.tsx
@@ -1,42 +1,29 @@
-import { SocialShareButtons } from '@/components/social-share-buttons';
+import { ShareTwitterButton, ShareLinkedInButton } from '@/components/share-buttons';
-describe('Social Share Buttons', () => {
- beforeEach(() => {
- cy.mount(
An unexpected error has occurred.
{error.message}
diff --git a/packages/app/src/app/layout.tsx b/packages/app/src/app/layout.tsx index 4dbb344..ad753cf 100644 --- a/packages/app/src/app/layout.tsx +++ b/packages/app/src/app/layout.tsx @@ -159,7 +159,7 @@ export default function RootLayout({ - +