-
Notifications
You must be signed in to change notification settings - Fork 35
test: Become a mentee Section #143 #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nora-weisser
merged 13 commits into
Women-Coding-Community:main
from
joanaBrit:test-143-become-a-mentee-playwright
Jun 7, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
50547c4
Remove mentee registration option from mentorship dropdown
joanaBrit 8b589e5
Create file for playright test
joanaBrit 1e372c0
test: add title, description tests
joanaBrit 8032165
playwright
joanaBrit 832ae3e
Merge branch 'main' into test-143-become-a-mentee-playwright
joanaBrit c58ff9a
test: add button testing
joanaBrit d5141ec
fix: remove ununcessary element
joanaBrit 09e89e0
test: improve tests and add ID to MentorBecomeCard item list
joanaBrit ea225d4
chore: improve naming for readability
joanaBrit 1017b56
refactor: replace CSS selector with Playwright method
joanaBrit ec691d4
Refactor: Replace manual page object creation with Playwright fixture…
joanaBrit 8c68290
Merge branch 'test-143-become-a-mentee-playwright' of https://github.…
joanaBrit 4fd1e24
Merge branch 'main' into test-143-become-a-mentee-playwright
joanaBrit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import { expect } from '@playwright/test'; | ||
| import { test } from '@utils/fixtures'; | ||
| import { HomePage } from '@pages/home.page'; | ||
|
Check warning on line 3 in playwright-tests/tests/becomeAMentee.page.spec.ts
|
||
| import { MentorshipPage } from '@pages/mentorship.page'; | ||
|
Check warning on line 4 in playwright-tests/tests/becomeAMentee.page.spec.ts
|
||
|
|
||
| test('Validate "Become a Mentee" section and Find a Mentor button', async ({ | ||
| page, mentorshipPage, homePage | ||
| }) => { | ||
| // Navigate to Mentorship page | ||
| await page.goto('/mentorship'); | ||
|
|
||
| await expect(mentorshipPage.sectionTitle).toBeVisible(); | ||
| await expect(mentorshipPage.description).toBeVisible(); | ||
|
|
||
| // List items | ||
| const items = [ | ||
| 'Want to start a career in software engineering', | ||
| 'Want to find a better job', | ||
| 'Want to be promoted at work', | ||
| 'Want to apply for a leadership position', | ||
| 'Need support in advancing your career', | ||
| ]; | ||
|
|
||
| await expect(mentorshipPage.menteeListItems).toHaveText(items); | ||
|
|
||
| await homePage.findMentorButton.click(); | ||
| await expect(page).toHaveURL(/\/mentorship\/mentors/); | ||
| }); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.