From 629ec3e81ea9c836f040f4d5fee95e674430eed3 Mon Sep 17 00:00:00 2001 From: Chloe Date: Tue, 21 Jan 2020 16:16:12 -0800 Subject: [PATCH] Updated test cases and snapshots (#28) * Updated test cases and snapshots --- package.json | 3 +- .../Main/__snapshots__/main.test.tsx.snap | 509 ++ public/components/Main/main.test.tsx | 13 +- .../QueryEditor/QueryEditor.test.tsx | 12 - .../QueryResults/QueryResults.test.tsx | 37 +- .../components/QueryResults/QueryResults.tsx | 6 +- .../QueryResults/QueryResultsBody.test.tsx | 36 +- .../QueryResultsBody.test.tsx.snap | 5392 ----------------- server/services/QueryService.ts | 1 + test/setup.jest.ts | 2 +- yarn.lock | 5 + 11 files changed, 588 insertions(+), 5428 deletions(-) diff --git a/package.json b/package.json index 596bcfb..dcaff93 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "lint": "tslint .", "start": "plugin-helpers start", "test:server": "plugin-helpers test:server", - "test:browser": "testcafe chrome public/__tests__", + "test:browser": "plugin-helpers test:browser", "test:jest": "NODE_PATH=../../node_modules ../../node_modules/.bin/jest --config ./test/jest.config.js", "build": "plugin-helpers build" }, @@ -67,6 +67,7 @@ "jest-cli": "24.9.0", "jest-raw-loader": "^1.0.1", "lint-staged": "^9.2.0", + "mutationobserver-shim": "^0.3.3", "prettier": "1.18.2", "ts-jest": "^23.1.4", "ts-loader": "^3.5.0", diff --git a/public/components/Main/__snapshots__/main.test.tsx.snap b/public/components/Main/__snapshots__/main.test.tsx.snap index 1a26a73..0f4845a 100644 --- a/public/components/Main/__snapshots__/main.test.tsx.snap +++ b/public/components/Main/__snapshots__/main.test.tsx.snap @@ -1527,6 +1527,515 @@ exports[`
spec click run button, and response is ok 1`] = ` `; +exports[`
spec click translation button, and response is ok 1`] = ` +
+
+
+
+ SQL console +
+
+
+
+
+
+

+ SQL console +

+
+
+
+ SQL Query +
+
+
+

+ Press Enter to start editing. +

+

+ When you're done, press Escape to stop editing. +

+
+
+