Repository navigation
add student id test - #5
marcospampi wants to merge 5 commits into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
| self.student_id = page.get_by_test_id("profile-student-id") | ||
| self.degree_course = page.get_by_test_id("profile-degree") | ||
|
|
||
| def goto(self): |
There was a problem hiding this comment.
manca il tipo di ritorno, def goto(self) -> None:
|
|
||
|
|
||
| def test_student_id(page: Page) -> None: | ||
|
|
| login_page.goto() | ||
| login_page.username.fill("mario") | ||
| login_page.username.fill("password123") |
There was a problem hiding this comment.
login() vuole username e password, senza argomenti va in TypeError, e la password qui finisce di nuovo in username, puoi sostituire queste tre righe con login_page.login("mario", "password123")
| @@ -0,0 +1,14 @@ | |||
| Feature: StudentId | |||
|
|
|||
| # Background: | |||
There was a problem hiding this comment.
puoi togliere questa riga commentata
| When I goto profile page | ||
| Then I see the student ID "1000012345" | ||
|
|
||
| Scenario: Wrong student id |
There was a problem hiding this comment.
puoi chiamare lo scenario con quello che controlla, ex Unknown user cannot open the profile
| Scenario: Wrong student id | ||
| Given I log in as "luigi" with password "password123" | ||
| When I goto profile page | ||
| Then I cannot enter profile page |
There was a problem hiding this comment.
qui ci sono due tab al posto dei 4 spazi
|
|
||
|
|
||
| @then("I cannot enter profile page") | ||
| def dont_see_student_id(page: Page) -> None: |
There was a problem hiding this comment.
questa funzione ha lo stesso nome di quella alla riga 30, puoi chiamarla ex cannot_enter_profile_page
No description provided.