Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppeteer_tests: Remove sequential numbers from test files.
Riken Shahf6998d6feedc
diff --git a/docs/testing/testing-with-puppeteer.md b/docs/testing/testing-with-puppeteer.mdindex de58210ad36..8cdaa8d2ab0 100644--- a/docs/testing/testing-with-puppeteer.md+++ b/docs/testing/testing-with-puppeteer.md@@ -73,7 +73,7 @@ integration](../testing/continuous-integration.md):affects any of the selectors used in the tests? If so, the test mayjust need to be updated for your changes.* Does the test fail deterministically when you run it locally using- E.g. `./tools/test-js-with-puppeteer 03`? If so, you can+ E.g. `./tools/test-js-with-puppeteer compose.ts`? If so, you caniteratively debug to see the failure.* Does the test fail nondeterministically? If so, the problem islikely that a `waitForSelector` statement is either missing or notdiff --git a/docs/testing/testing.md b/docs/testing/testing.mdindex 6e61d85ba8b..5c1da100f5a 100644--- a/docs/testing/testing.md+++ b/docs/testing/testing.md@@ -35,7 +35,7 @@ typically involve running subsets of the tests with commands like these:./tools/lint zerver/lib/actions.py # Lint the file you just changed./tools/test-backend zerver.tests.test_markdown.MarkdownTest.test_inline_youtube./tools/test-backend MarkdownTest # Run `test-backend --help` for more options-./tools/test-js-with-puppeteer 07-navigation.js+./tools/test-js-with-puppeteer navigation.ts./tools/test-js-with-node utils.js```diff --git a/docs/tutorials/new-feature-tutorial.md b/docs/tutorials/new-feature-tutorial.mdindex 94ca645890c..a8023e0ba12 100644--- a/docs/tutorials/new-feature-tutorial.md+++ b/docs/tutorials/new-feature-tutorial.md@@ -56,7 +56,7 @@ organization in Zulip). The following files are involved in the process:zerver/lib/events.py implementation.**Frontend testing**-- `frontend_tests/puppeteer_tests/08-admin.js`: end-to-end tests for the organization+- `frontend_tests/puppeteer_tests/admin.ts`: end-to-end tests for the organizationadmin settings pages.- `frontend_tests/node_tests/dispatch.js`diff --git a/frontend_tests/puppeteer_tests/08-admin.ts b/frontend_tests/puppeteer_tests/admin.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/08-admin.tsrename to frontend_tests/puppeteer_tests/admin.tsdiff --git a/frontend_tests/puppeteer_tests/03-compose.ts b/frontend_tests/puppeteer_tests/compose.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/03-compose.tsrename to frontend_tests/puppeteer_tests/compose.tsdiff --git a/frontend_tests/puppeteer_tests/14-copy-and-paste.ts b/frontend_tests/puppeteer_tests/copy-and-paste.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/14-copy-and-paste.tsrename to frontend_tests/puppeteer_tests/copy-and-paste.tsdiff --git a/frontend_tests/puppeteer_tests/10-custom-profile.ts b/frontend_tests/puppeteer_tests/custom-profile.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/10-custom-profile.tsrename to frontend_tests/puppeteer_tests/custom-profile.tsdiff --git a/frontend_tests/puppeteer_tests/13-delete-message.ts b/frontend_tests/puppeteer_tests/delete-message.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/13-delete-message.tsrename to frontend_tests/puppeteer_tests/delete-message.tsdiff --git a/frontend_tests/puppeteer_tests/12-drafts.ts b/frontend_tests/puppeteer_tests/drafts.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/12-drafts.tsrename to frontend_tests/puppeteer_tests/drafts.tsdiff --git a/frontend_tests/puppeteer_tests/06-edit.ts b/frontend_tests/puppeteer_tests/edit.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/06-edit.tsrename to frontend_tests/puppeteer_tests/edit.tsdiff --git a/frontend_tests/puppeteer_tests/09-mention.ts b/frontend_tests/puppeteer_tests/mention.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/09-mention.tsrename to frontend_tests/puppeteer_tests/mention.tsdiff --git a/frontend_tests/puppeteer_tests/02-message-basics.ts b/frontend_tests/puppeteer_tests/message-basics.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/02-message-basics.tsrename to frontend_tests/puppeteer_tests/message-basics.tsdiff --git a/frontend_tests/puppeteer_tests/07-navigation.ts b/frontend_tests/puppeteer_tests/navigation.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/07-navigation.tsrename to frontend_tests/puppeteer_tests/navigation.tsdiff --git a/frontend_tests/puppeteer_tests/01-realm-creation.ts b/frontend_tests/puppeteer_tests/realm-creation.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/01-realm-creation.tsrename to frontend_tests/puppeteer_tests/realm-creation.tsdiff --git a/frontend_tests/puppeteer_tests/15-realm-linkifier.ts b/frontend_tests/puppeteer_tests/realm-linkifier.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/15-realm-linkifier.tsrename to frontend_tests/puppeteer_tests/realm-linkifier.tsdiff --git a/frontend_tests/puppeteer_tests/16-settings.ts b/frontend_tests/puppeteer_tests/settings.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/16-settings.tsrename to frontend_tests/puppeteer_tests/settings.tsdiff --git a/frontend_tests/puppeteer_tests/05-stars.ts b/frontend_tests/puppeteer_tests/stars.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/05-stars.tsrename to frontend_tests/puppeteer_tests/stars.tsdiff --git a/frontend_tests/puppeteer_tests/04-subscriptions.ts b/frontend_tests/puppeteer_tests/subscriptions.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/04-subscriptions.tsrename to frontend_tests/puppeteer_tests/subscriptions.tsdiff --git a/frontend_tests/puppeteer_tests/11-user-deactivation.ts b/frontend_tests/puppeteer_tests/user-deactivation.tssimilarity index 100%rename from frontend_tests/puppeteer_tests/11-user-deactivation.tsrename to frontend_tests/puppeteer_tests/user-deactivation.tsdiff --git a/tools/message-screenshot.js b/tools/message-screenshot.jsindex 020c9ef7511..dcd29936cb3 100644--- a/tools/message-screenshot.js+++ b/tools/message-screenshot.js@@ -26,7 +26,7 @@ if (options.messageId === undefined) {process.exit(1);}-// TODO: Refactor to share code with frontend_tests/puppeteer_tests/01-realm-creation.js+// TODO: Refactor to share code with frontend_tests/puppeteer_tests/realm-creation.tsasync function run() {const browser = await puppeteer.launch({args: [diff --git a/tools/test-js-with-puppeteer b/tools/test-js-with-puppeteerindex 26e874855fd..eceb3574f96 100755--- a/tools/test-js-with-puppeteer+++ b/tools/test-js-with-puppeteer@@ -28,10 +28,10 @@ os.environ.pop("https_proxy", "")usage = """test-js-with-puppeteer [options]test-js-with-puppeteer # Run all test files- test-js-with-puppeteer 09-navigation.js # Run a single test file- test-js-with-puppeteer 09 # Run a single test file 09-navigation.js- test-js-with-puppeteer 01-login.js 03-narrow.js # Run a few test files- test-js-with-puppeteer 01 03 # Run a few test files, 01-login.js and 03-narrow.js here"""+ test-js-with-puppeteer navigation.ts # Run a single test file+ test-js-with-puppeteer navi # Run a single test file navigation.ts+ test-js-with-puppeteer login.ts compose.ts # Run a few test files+ test-js-with-puppeteer login compose # Run a few test files, login.ts and compose.ts here"""sys.path.insert(0, ZULIP_PATH)