Skip to content

feat: contact test - #3

Open
carme-10 wants to merge 1 commit into
UNICT-Quality-Development:mainfrom
carme-10:first-exercise
Open

carme-10 wants to merge 1 commit into
UNICT-Quality-Development:mainfrom
carme-10:first-exercise

Conversation

@carme-10

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: bc8a79cf-81d9-49da-9f36-609ab0230648
  • 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 pages/contact_page.py
self.email = page.get_by_test_id("contact-email")

def goto(self) -> None:
self.page.goto("/contact") 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.

manca il newline a fine file

Comment thread tests/test_contact_bdd.py
@@ -0,0 +1,19 @@
from playwright.sync_api import Page, expect
from pytest_bdd import given, parsers, scenarios, then, when

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.

when non lo usi, puoi toglierlo

Comment thread tests/test_contact_bdd.py


@then(parsers.parse('I see the email "{text}"'))
def see_email(page: Page, text: str) -> 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.

il given ritorna già contact_page, puoi usare quello, ex def see_email(contact_page: ContactPage, text: str) -> None:

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