Просмотр исходного кода

Fix selectors in e2e tests (#26695)

* Fix e2e tests

* Fix e2e tests

GitOrigin-RevId: 10bb27b6b33dd38d35964d327c0122d094a0abc9
Rebeka Dekany 1 год назад
Родитель
Сommit
66b7fd8844

+ 1 - 0
services/web/frontend/extracted-translations.json

@@ -654,6 +654,7 @@
   "git_bridge_modal_review_access": "",
   "git_bridge_modal_see_once": "",
   "git_bridge_modal_use_previous_token": "",
+  "git_clone_project": "",
   "git_integration": "",
   "git_integration_info": "",
   "github": "",

+ 7 - 1
services/web/frontend/js/features/word-count-modal/components/word-count-modal.tsx

@@ -11,7 +11,13 @@ const WordCountModal = memo(function WordCountModal({
   handleHide: () => void
 }) {
   return (
-    <OLModal animation show={show} onHide={handleHide} id="word-count-modal">
+    <OLModal
+      animation
+      show={show}
+      onHide={handleHide}
+      id="word-count-modal"
+      data-testid="word-count-modal"
+    >
       <WordCountModalContent handleHide={handleHide} />
     </OLModal>
   )

+ 1 - 0
services/web/locales/en.json

@@ -861,6 +861,7 @@
   "git_bridge_modal_review_access": "<0>You have review access to this project.</0> This means you can pull from __appName__ but you can’t push any changes you make back to this project.",
   "git_bridge_modal_see_once": "You’ll only see this token once. To delete it or generate a new one, visit Account settings. For detailed instructions and troubleshooting, read our <0>help page</0>.",
   "git_bridge_modal_use_previous_token": "If you’re prompted for a password, you can use a previously generated Git authentication token. Or you can generate a new one in Account settings. For more support, read our <0>help page</0>.",
+  "git_clone_project": "Git clone project",
   "git_gitHub_dropbox_mendeley_papers_and_zotero_integrations": "Git, GitHub, Dropbox, Papers, Zotero, and Mendeley integrations",
   "git_integration": "Git integration",
   "git_integration_info": "With Git integration, you can clone your Overleaf projects with Git. For full instructions on how to do this, <0>read our Git Integration help page</0>.",