mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-30 16:01:14 -04:00
test(e2e,playwright): certification page improvement (#52476)
This commit is contained in:
@@ -112,6 +112,28 @@ test.describe('Certification page - Non Microsoft', () => {
|
||||
'href',
|
||||
'/learn/2022/responsive-web-design/build-a-personal-portfolio-webpage-project/build-a-personal-portfolio-webpage'
|
||||
);
|
||||
|
||||
await expect(
|
||||
page.getByText(
|
||||
'If you suspect that any of these projects violate the academic honesty policy, please report this to our team.'
|
||||
)
|
||||
).toBeVisible();
|
||||
|
||||
const policyLink = projectLinks.getByRole('link', {
|
||||
name: 'academic honesty policy'
|
||||
});
|
||||
await expect(policyLink).toHaveAttribute(
|
||||
'href',
|
||||
'https://www.freecodecamp.org/news/academic-honesty-policy/'
|
||||
);
|
||||
|
||||
const reportLink = projectLinks.getByRole('link', {
|
||||
name: 'report this to our team'
|
||||
});
|
||||
await expect(reportLink).toHaveAttribute(
|
||||
'href',
|
||||
'/user/certifieduser/report-user'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -190,5 +212,27 @@ test.describe('Certification page - Microsoft', () => {
|
||||
'href',
|
||||
'/learn/foundational-c-sharp-with-microsoft/foundational-c-sharp-with-microsoft-certification-exam/foundational-c-sharp-with-microsoft-certification-exam'
|
||||
);
|
||||
|
||||
await expect(
|
||||
page.getByText(
|
||||
'If you suspect that any of these projects violate the academic honesty policy, please report this to our team.'
|
||||
)
|
||||
).toBeVisible();
|
||||
|
||||
const policyLink = projectLinks.getByRole('link', {
|
||||
name: 'academic honesty policy'
|
||||
});
|
||||
await expect(policyLink).toHaveAttribute(
|
||||
'href',
|
||||
'https://www.freecodecamp.org/news/academic-honesty-policy/'
|
||||
);
|
||||
|
||||
const reportLink = projectLinks.getByRole('link', {
|
||||
name: 'report this to our team'
|
||||
});
|
||||
await expect(reportLink).toHaveAttribute(
|
||||
'href',
|
||||
'/user/certifieduser/report-user'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user