Skip to content

test: verify correct contact email - #2

Open
marcospampi wants to merge 2 commits into
UNICT-Quality-Development:mainfrom
marcospampi:tests-contact-email
Open

marcospampi wants to merge 2 commits into
UNICT-Quality-Development:mainfrom
marcospampi:tests-contact-email

Conversation

@marcospampi

Copy link
Copy Markdown

No description provided.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fec64131-ea57-4e5f-b3b5-8301b2634d0c
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Comment thread tests/test_contact_email.py Outdated
@@ -0,0 +1,11 @@
import re

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re non lo usi, puoi toglierlo

Comment thread tests/test_contact_email.py Outdated

from playwright.sync_api import Page, expect

def test_contact_email(page: Page):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manca il tipo di ritorno, ex def test_contact_email(page: Page) -> None:

Comment thread tests/test_contact_email.py Outdated
from playwright.sync_api import Page, expect

def test_contact_email(page: Page):
page.goto('/contact')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qui usi i tab al posto di 4 spazi, e mancano il newline a fine file e la seconda riga vuota prima della def, puoi lanciare black tests/test_contact_email.py

Comment thread tests/test_contact_email.py Outdated
contact_email = page.get_by_test_id('contact-email')

expect(contact_email).to_have_text('student.office@example.com')
expect(contact_email).to_have_url('mailto:student.office@example.com') No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to_have_url c'è solo su expect(page), su un locator il test va in AttributeError, per il link puoi usare to_have_attribute("href", "mailto:student.office@example.com")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants