mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(e2e): removed browserName from the function files (#55246)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
+2
-6
@@ -20,14 +20,10 @@ const testPage =
|
||||
'/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-3';
|
||||
|
||||
test.describe('Editor Component', () => {
|
||||
test('should allow the user to insert text', async ({
|
||||
page,
|
||||
isMobile,
|
||||
browserName
|
||||
}) => {
|
||||
test('should allow the user to insert text', async ({ page, isMobile }) => {
|
||||
await page.goto(testPage);
|
||||
|
||||
await focusEditor({ page, isMobile, browserName });
|
||||
await focusEditor({ page, isMobile });
|
||||
await page.keyboard.insertText('<h2>FreeCodeCamp</h2>');
|
||||
const text = page.getByText('<h2>FreeCodeCamp</h2>');
|
||||
await expect(text).toBeVisible();
|
||||
|
||||
@@ -87,7 +87,7 @@ test('Focuses on the submit button after tests passed', async ({
|
||||
const submitButton = page.getByRole('button', {
|
||||
name: 'Submit and go to next challenge'
|
||||
});
|
||||
await focusEditor({ page, browserName, isMobile });
|
||||
await focusEditor({ page, isMobile });
|
||||
await clearEditor({ page, browserName });
|
||||
|
||||
await editor.fill(
|
||||
|
||||
@@ -42,7 +42,7 @@ test.describe('Progress bar component', () => {
|
||||
await page.goto(
|
||||
'/learn/javascript-algorithms-and-data-structures/basic-javascript/declare-javascript-variables'
|
||||
);
|
||||
await focusEditor({ page, isMobile, browserName });
|
||||
await focusEditor({ page, isMobile });
|
||||
await clearEditor({ page, browserName });
|
||||
|
||||
await page.keyboard.insertText('var myName;');
|
||||
|
||||
Reference in New Issue
Block a user