diff --git a/tests/e2e/markdown-editor.test.e2e.ts b/tests/e2e/markdown-editor.test.e2e.ts index e593fbd4c5..aa7d8dd256 100644 --- a/tests/e2e/markdown-editor.test.e2e.ts +++ b/tests/e2e/markdown-editor.test.e2e.ts @@ -518,7 +518,7 @@ test('text expander has higher prio then prefix continuation', async ({page}) => await suggestionList.waitFor(); await expect(suggestionList).toBeVisible(); await textarea.press('Enter'); - await expect(textarea).toHaveValue(`* first\n* 😸\n* @user2 \n* #1 `); + await expect(textarea).toHaveValue(`* first\n* 😸\n* @user2 \n* #1 `); // Test pull request completion via '#' await textarea.press('Enter'); @@ -527,7 +527,7 @@ test('text expander has higher prio then prefix continuation', async ({page}) => await expect(suggestionList).toBeVisible(); await textarea.press('Enter'); await expect(textarea).toHaveValue(`* first\n* 😸\n* @user2 \n* #1 \n* !5 `); - + // Test pull request completion via '!' await textarea.press('Enter'); await textarea.pressSequentially('!issue'); @@ -537,14 +537,12 @@ test('text expander has higher prio then prefix continuation', async ({page}) => // Only pull requests should be suggested, not issues await expect(suggestionList.locator('[class*="octicon-issue"]')).toHaveCount(0); await expect(suggestionList.locator('[class*="octicon-git-pull-request"]')).not.toHaveCount(0); - + await textarea.press('Enter'); await expect(textarea).toHaveValue(`* first\n* 😸\n* @user2 \n* #1 \n* !5 \n* !2 `); await textarea.press('Enter'); await expect(textarea).toHaveValue(`* first\n* 😸\n* @user2 \n* #1 \n* !5 \n* !2 \n* `); - - }); test('Combo Markdown: preview mode switch', async ({page}) => {