This commit is contained in:
Ilenia
2024-06-26 16:14:12 +02:00
committed by GitHub
parent cbfb17cc8a
commit 9ffb1d5b43
9 changed files with 58 additions and 28 deletions
+4 -2
View File
@@ -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>'