From 568fd873e46b2b5b480d6842c88cee9b828fb90b Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 27 Jan 2020 18:16:40 +0530 Subject: [PATCH 1/6] fix: typo --- functions/postwomanTesting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/postwomanTesting.js b/functions/postwomanTesting.js index 76d44568abe..0115f16fbc5 100644 --- a/functions/postwomanTesting.js +++ b/functions/postwomanTesting.js @@ -51,7 +51,7 @@ function test(descriptor, func, _testReports) { } _testReports.push({ endBlock: true }); - // TODO: Organieze and generate text report of each {descriptor: true} section in testReports. + // TODO: Organize and generate text report of each {descriptor: true} section in testReports. // add checkmark or x depending on if each testReport is pass=true or pass=false } From dacf479838e4e3c1f0f06c60111c4b80183fe150 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 27 Jan 2020 18:17:01 +0530 Subject: [PATCH 2/6] fix: comment spacing --- functions/postwomanTesting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/postwomanTesting.js b/functions/postwomanTesting.js index 0115f16fbc5..a7ebf941bbf 100644 --- a/functions/postwomanTesting.js +++ b/functions/postwomanTesting.js @@ -9,7 +9,7 @@ const styles = { none: { icon: "", class: "" } }; -//TODO: probably have to use a more global state for `test` +// TODO: probably have to use a more global state for `test` export default function runTestScriptWithVariables(script, variables) { let pw = { From a55eb11f5b975fa7d6d89cc167b92ddf310e5c60 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 27 Jan 2020 18:19:27 +0530 Subject: [PATCH 3/6] fix: status code info --- functions/postwomanTesting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/postwomanTesting.js b/functions/postwomanTesting.js index a7ebf941bbf..2b2b2ed1bcc 100644 --- a/functions/postwomanTesting.js +++ b/functions/postwomanTesting.js @@ -161,7 +161,7 @@ class Expectation { let code = parseInt(this.expectValue); if (Number.isNaN(code)) { return this._fail( - `Expected 200-level status but could not parse value ${this.expectValue}` + `Expected 500-level status but could not parse value ${this.expectValue}` ); } return this._satisfies(code >= 500 && code < 600) From f816ad084153ac043882ae74eaeffae627d3a9e1 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 27 Jan 2020 22:49:12 +0530 Subject: [PATCH 4/6] fix: typo --- functions/postwomanTesting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/postwomanTesting.js b/functions/postwomanTesting.js index 2b2b2ed1bcc..1d42c03edd3 100644 --- a/functions/postwomanTesting.js +++ b/functions/postwomanTesting.js @@ -116,7 +116,7 @@ class Expectation { let code = parseInt(this.expectValue); if (Number.isNaN(code)) { return this._fail( - `Expecteded 200-level status but could not parse value ${this.expectValue}` + `Expected 200-level status but could not parse value ${this.expectValue}` ); } return this._satisfies(code >= 200 && code < 300) From 870484d06a02b4613b0ab9cd0a55cc944c93cb55 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 27 Jan 2020 22:50:02 +0530 Subject: [PATCH 5/6] refactor: let to const --- functions/postwomanTesting.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/postwomanTesting.js b/functions/postwomanTesting.js index 1d42c03edd3..83abf2f0928 100644 --- a/functions/postwomanTesting.js +++ b/functions/postwomanTesting.js @@ -113,7 +113,7 @@ class Expectation { ); } toBeLevel2xx() { - let code = parseInt(this.expectValue); + const code = parseInt(this.expectValue); if (Number.isNaN(code)) { return this._fail( `Expected 200-level status but could not parse value ${this.expectValue}` @@ -128,7 +128,7 @@ class Expectation { ); } toBeLevel3xx() { - let code = parseInt(this.expectValue); + const code = parseInt(this.expectValue); if (Number.isNaN(code)) { return this._fail( `Expected 300-level status but could not parse value ${this.expectValue}` @@ -143,7 +143,7 @@ class Expectation { ); } toBeLevel4xx() { - let code = parseInt(this.expectValue); + const code = parseInt(this.expectValue); if (Number.isNaN(code)) { return this._fail( `Expected 400-level status but could not parse value ${this.expectValue}` @@ -158,7 +158,7 @@ class Expectation { ); } toBeLevel5xx() { - let code = parseInt(this.expectValue); + const code = parseInt(this.expectValue); if (Number.isNaN(code)) { return this._fail( `Expected 500-level status but could not parse value ${this.expectValue}` From f93fc4cf624670826d0fdf583751bb2d0dacf921 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Mon, 27 Jan 2020 23:28:07 +0530 Subject: [PATCH 6/6] :art: Minor UI styling --- assets/css/styles.scss | 4 ++++ pages/index.vue | 22 ++++++++++------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 87cf8afc957..5906ac8860d 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -259,6 +259,10 @@ h4 { font-weight: 700; } +hr { + border-bottom: 1px dashed var(--brd-color); +} + .tooltip { $bgcolor: var(--tt-color); $fgcolor: var(--fg-color); diff --git a/pages/index.vue b/pages/index.vue index b926ec18470..d0095e695d7 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -381,23 +381,21 @@
-
- +
+

{{ testReport.startBlock }}

+
+

+ {{ testReport.styles.icon }}   {{ testReport.result }} + + + -

    -
  • - -
  • -
-
-
-

{{ testReport.startBlock }}

-
-

+

+