chore(e2e): use ControlOrMeta and remove browserName (#55326)

This commit is contained in:
Ilenia
2024-06-26 11:01:26 +02:00
committed by GitHub
parent 09fe21653d
commit c240bd40e8
9 changed files with 28 additions and 58 deletions
+4 -6
View File
@@ -70,15 +70,14 @@ test.describe('For classic challenges', () => {
test('shows test output when the tests are run', async ({
page,
isMobile,
browserName
isMobile
}) => {
const closeButton = page.getByRole('button', { name: 'Close' });
await expect(page).toHaveTitle(
'Basic HTML and HTML5: Say Hello to HTML Elements |' + ' freeCodeCamp.org'
);
await clearEditor({ browserName, page });
await clearEditor({ page });
await insertTextInCodeEditor({
page,
isMobile,
@@ -95,11 +94,10 @@ test.describe('For classic challenges', () => {
test('shows test output when the tests are triggered by the keyboard', async ({
page,
isMobile,
browserName
isMobile
}) => {
const closeButton = page.getByRole('button', { name: 'Close' });
await clearEditor({ browserName, page });
await clearEditor({ page });
await insertTextInCodeEditor({
page,
isMobile,