Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions playwright-tests/pages/base.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export class BasePage {
this.blogLink = page.getByRole('button', { name: 'Blog' });
this.jobsLink = page.getByRole('button', { name: 'Jobs' });
this.aboutUsDropdown = page.getByRole('button', { name: 'About Us' });
this.findMentorButton = page.getByRole('button', { name: 'Find a mentor' });
this.findMentorButton = page.getByRole('link', {
name: 'Check our mentors',
});
this.menuitem = (itemTitle: string) =>
page.getByRole('menuitem', { name: itemTitle });

Expand Down Expand Up @@ -60,7 +62,9 @@ export class BasePage {
Instagram: links.filter({ has: page.getByTestId('InstagramIcon') }),
Email: links.filter({ has: page.getByTestId('EmailIcon') }),
Slack: page.locator('a[href*="join.slack.com"]').last(),
'Send us a report': page.getByText('Send us a report on GitHub', { exact: true }),
'Send us a report': page.getByText('Send us a report on GitHub', {
exact: true,
}),
};
}

Expand Down
4 changes: 3 additions & 1 deletion playwright-tests/pages/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export class HomePage extends BasePage {
name: 'Learn more about volunteering',
});

this.findMentorButton = page.getByRole('button', { name: 'Find a mentor' });
this.findMentorButton = page.getByRole('link', {
name: 'Check our mentors',
});

this.heroTitle = page
.getByTestId('hero-container')
Expand Down
4 changes: 1 addition & 3 deletions playwright-tests/tests/home.page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ test.describe('Validate Home Page', () => {
await basePage.clickElement(homePage.joinAsMentorBtn);

await basePage.verifyURL('/mentorship/mentor-registration');
await basePage.verifyPageContainsText(
'Welcome to the MentorRegistrationPage',
);
await basePage.verifyPageContainsText('WCC: Registration Form for Mentors');
});

test('HP-004: Volunteer section', async ({ homePage, basePage }) => {
Expand Down
2 changes: 1 addition & 1 deletion playwright-tests/utils/datafactory/nav.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const aboutUsMenuItems = items.map(([name, url, text]) => ({
expectedText: text,
}));
const mentorshipItems = [
['Overview', '/'],
['Overview', '/mentorship'],
['Mentors', '/mentorship/mentors'],
['Study Groups', '/mentorship/study-groups'],
['Resources', '/mentorship/resources'],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/responses/mentorship.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"uri": "/mentorship/mentors"
},
"items": [
"Want to start career in software engineering",
"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",
Expand Down
Loading