mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
@@ -79,6 +79,7 @@ test('Checks hotkeys when instruction is focused', async ({
|
||||
|
||||
test('Focuses on the submit button after tests passed', async ({
|
||||
page,
|
||||
browserName,
|
||||
isMobile
|
||||
}) => {
|
||||
const editor = getEditors(page);
|
||||
@@ -87,7 +88,7 @@ test('Focuses on the submit button after tests passed', async ({
|
||||
name: 'Submit and go to next challenge'
|
||||
});
|
||||
await focusEditor({ page, isMobile });
|
||||
await clearEditor({ page });
|
||||
await clearEditor({ page, browserName });
|
||||
|
||||
await editor.fill(
|
||||
'<h2>Cat Photos</h2>\n<p>See more cat photos in our gallery.</p>'
|
||||
@@ -99,6 +100,7 @@ test('Focuses on the submit button after tests passed', async ({
|
||||
|
||||
test('Prompts unauthenticated user to sign in to save progress', async ({
|
||||
page,
|
||||
browserName,
|
||||
isMobile
|
||||
}) => {
|
||||
await signout(page);
|
||||
@@ -109,7 +111,7 @@ test('Prompts unauthenticated user to sign in to save progress', async ({
|
||||
name: 'Sign in to save your progress'
|
||||
});
|
||||
await focusEditor({ page, isMobile });
|
||||
await clearEditor({ page });
|
||||
await clearEditor({ page, browserName });
|
||||
|
||||
await editor.fill(
|
||||
'<h2>Cat Photos</h2>\n<p>See more cat photos in our gallery.</p>'
|
||||
|
||||
Reference in New Issue
Block a user