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:
Ilenia
2024-10-21 16:57:40 +02:00
committed by GitHub
parent 5df8774eab
commit f8287ce2ca
75 changed files with 522 additions and 430 deletions
+3 -3
View File
@@ -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