mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(curriculum): refactor step 12 and check images using .src (#56735)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Dario-DC <105294544+Dario-DC@users.noreply.github.com> Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,7 @@ test.describe('Progress bar component', () => {
|
||||
await clearEditor({ page, browserName });
|
||||
|
||||
await page.keyboard.insertText(
|
||||
'<html><body><h1>CatPhotoApp</h1><h2>Cat Photos</h2><p>See more cat photos in our gallery.</p></body></html>'
|
||||
'<html><body><h1>CatPhotoApp</h1><h2>Cat Photos</h2><p>Everyone loves cute cats online!</p></body></html>'
|
||||
);
|
||||
|
||||
await page.getByRole('button', { name: 'Check Your Code' }).click();
|
||||
@@ -28,7 +28,7 @@ test.describe('Progress bar component', () => {
|
||||
await expect(progressBarContainer).toContainText(
|
||||
'Learn HTML by Building a Cat Photo App'
|
||||
);
|
||||
await expect(progressBarContainer).toContainText('0% complete');
|
||||
await expect(progressBarContainer).toContainText(/\d% complete/);
|
||||
await page
|
||||
.getByRole('button', { name: 'Submit and go to next challenge' })
|
||||
.click();
|
||||
@@ -55,7 +55,7 @@ test.describe('Progress bar component', () => {
|
||||
.click();
|
||||
|
||||
await expect(page.locator('.completion-block-meta')).toContainText(
|
||||
'99% complete'
|
||||
/\d% complete/
|
||||
);
|
||||
|
||||
await page
|
||||
|
||||
Reference in New Issue
Block a user