Skip to content

test: add contact email test - #1

Open
andreafazzina wants to merge 3 commits into
UNICT-Quality-Development:mainfrom
andreafazzina:test_lab
Open

andreafazzina wants to merge 3 commits into
UNICT-Quality-Development:mainfrom
andreafazzina:test_lab

Conversation

@andreafazzina

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: a2ccadf7-77c1-4e33-b417-bec7ae6c616a
  • 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_lab.py Resolved
Comment thread tests/test_lab.py Resolved
Comment thread tests/test_lab.py Resolved
Comment thread tests/test_lab.py
from playwright.sync_api import Page, expect


def test_contact_email(page: Page) -> None:

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.

ora il README chiede anche i pattern Page Object e BDD per ogni esercizio, ex una ContactPage in pages, lo scenario in tests/features e gli step con pytest-bdd, come in tests/test_login_bdd.py

Comment thread tests/test_lab.py

def test_contact_email(page: Page) -> None:
page.goto("/contact")
email = page.get_by_text("student.office@example.com")

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.

l'esercizio chiede che l'email sia proprio student.office@example.com, get_by_text la trova anche dentro un testo più lungo, puoi passare exact=True

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