Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 3 additions & 1 deletion playwright-tests/pages/base.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,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,
}),
Comment thread
Deejarh marked this conversation as resolved.
};
}

Expand Down
6 changes: 4 additions & 2 deletions playwright-tests/tests/becomeAMentee.page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { HomePage } from '@pages/home.page';
import { MentorshipPage } from '@pages/mentorship.page';

test('Validate "Become a Mentee" section and Find a Mentor button', async ({
page, mentorshipPage, homePage
page,
mentorshipPage,
homePage,
Comment thread
Deejarh marked this conversation as resolved.
}) => {
// Navigate to Mentorship page
await page.goto('/mentorship');
Expand All @@ -22,7 +24,7 @@ test('Validate "Become a Mentee" section and Find a Mentor button', async ({
];

await expect(mentorshipPage.menteeListItems).toHaveText(items);

Comment thread
Deejarh marked this conversation as resolved.
await homePage.findMentorButton.click();
await expect(page).toHaveURL(/\/mentorship\/mentors/);
});
14 changes: 8 additions & 6 deletions src/pages/mentorship/mentee-registration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,14 @@
px: { xs: 2, sm: 3 },
maxWidth: isMobile ? '100%' : theme.custom?.innerBox?.maxWidth,
margin: '0 auto',
...(!registrationOpen && {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
minHeight: '70vh',
}),
...(!registrationOpen

Check warning on line 215 in src/pages/mentorship/mentee-registration.tsx

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=Women-Coding-Community_wcc-frontend&issues=AZ77fM7v63z8NIpArMuQ&open=AZ77fM7v63z8NIpArMuQ&pullRequest=286
Comment thread
Deejarh marked this conversation as resolved.
Outdated
? {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
minHeight: '70vh',
}
: {}),
}}
>
<Box
Expand Down
2 changes: 1 addition & 1 deletion src/utils/mentorshipConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ export const PREFERENCE_LEVELS = ['Low', 'Medium', 'High', 'Not Applicable'];
* Mentee registration toggle.
* Set to `true` to open the registration form, `false` to show the closed page.
*/
export const IS_REGISTRATION_OPEN = false;
export const IS_REGISTRATION_OPEN = true;
Loading