You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/12/23 05:56:43 UTC
[GitHub] [apisix-dashboard] idbeta opened a new pull request #1105: test: add frontend e2e test (smoke test for settings page)
idbeta opened a new pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105
Please answer these questions before submitting a pull request
- Why submit this pull request?
- [x] E2E test
- [ ] New feature provided
- [ ] Improve performance
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] codecov-io edited a comment on pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#issuecomment-749952748
# [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=h1) Report
> Merging [#1105](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=desc) (14ba0f1) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/46bf1ef9cfe4f4c659752176424151bb4fc4952f?el=desc) (46bf1ef) will **not change** coverage.
> The diff coverage is `n/a`.
[![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P)](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #1105 +/- ##
=======================================
Coverage 41.06% 41.06%
=======================================
Files 28 28
Lines 1773 1773
=======================================
Hits 728 728
Misses 939 939
Partials 106 106
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=footer). Last update [46bf1ef...14ba0f1](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] codecov-io edited a comment on pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#issuecomment-749952748
# [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=h1) Report
> Merging [#1105](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=desc) (f042251) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/78b4031d6899be672fcb41b29fcb40f9f898509b?el=desc) (78b4031) will **decrease** coverage by `0.05%`.
> The diff coverage is `n/a`.
[![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P)](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #1105 +/- ##
==========================================
- Coverage 41.86% 41.80% -0.06%
==========================================
Files 29 29
Lines 1825 1825
==========================================
- Hits 764 763 -1
- Misses 953 954 +1
Partials 108 108
```
| [Impacted Files](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [api/internal/core/store/store.go](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/diff?src=pr&el=tree#diff-YXBpL2ludGVybmFsL2NvcmUvc3RvcmUvc3RvcmUuZ28=) | `79.50% <0.00%> (-0.63%)` | :arrow_down: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=footer). Last update [78b4031...f042251](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] codecov-io edited a comment on pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#issuecomment-749952748
# [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=h1) Report
> Merging [#1105](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=desc) (5d7deb5) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/46bf1ef9cfe4f4c659752176424151bb4fc4952f?el=desc) (46bf1ef) will **increase** coverage by `0.66%`.
> The diff coverage is `n/a`.
[![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P)](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #1105 +/- ##
==========================================
+ Coverage 41.06% 41.72% +0.66%
==========================================
Files 28 29 +1
Lines 1773 1819 +46
==========================================
+ Hits 728 759 +31
- Misses 939 951 +12
- Partials 106 109 +3
```
| [Impacted Files](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [api/internal/handler/consumer/consumer.go](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/diff?src=pr&el=tree#diff-YXBpL2ludGVybmFsL2hhbmRsZXIvY29uc3VtZXIvY29uc3VtZXIuZ28=) | `63.04% <0.00%> (-5.59%)` | :arrow_down: |
| [api/filter/schema.go](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/diff?src=pr&el=tree#diff-YXBpL2ZpbHRlci9zY2hlbWEuZ28=) | `0.00% <0.00%> (ø)` | |
| [api/internal/utils/consts/api\_error.go](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/diff?src=pr&el=tree#diff-YXBpL2ludGVybmFsL3V0aWxzL2NvbnN0cy9hcGlfZXJyb3IuZ28=) | `95.65% <0.00%> (ø)` | |
| [api/internal/handler/ssl/ssl.go](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/diff?src=pr&el=tree#diff-YXBpL2ludGVybmFsL2hhbmRsZXIvc3NsL3NzbC5nbw==) | `29.54% <0.00%> (+0.06%)` | :arrow_up: |
| [api/internal/utils/utils.go](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/diff?src=pr&el=tree#diff-YXBpL2ludGVybmFsL3V0aWxzL3V0aWxzLmdv) | `57.14% <0.00%> (+0.24%)` | :arrow_up: |
| [api/internal/handler/plugin/plugin.go](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/diff?src=pr&el=tree#diff-YXBpL2ludGVybmFsL2hhbmRsZXIvcGx1Z2luL3BsdWdpbi5nbw==) | `70.00% <0.00%> (+14.44%)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=footer). Last update [46bf1ef...100d120](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] codecov-io edited a comment on pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#issuecomment-749952748
# [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=h1) Report
> Merging [#1105](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=desc) (2886009) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/678b94d643c4f0bbbbcebbfe51025ada768b6165?el=desc) (678b94d) will **not change** coverage.
> The diff coverage is `n/a`.
[![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P)](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #1105 +/- ##
=======================================
Coverage 42.07% 42.07%
=======================================
Files 30 30
Lines 1856 1856
=======================================
Hits 781 781
Misses 965 965
Partials 110 110
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=footer). Last update [678b94d...2886009](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] codecov-io edited a comment on pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#issuecomment-749952748
# [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=h1) Report
> Merging [#1105](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=desc) (5247008) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/46bf1ef9cfe4f4c659752176424151bb4fc4952f?el=desc) (46bf1ef) will **not change** coverage.
> The diff coverage is `n/a`.
[![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P)](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #1105 +/- ##
=======================================
Coverage 41.06% 41.06%
=======================================
Files 28 28
Lines 1773 1773
=======================================
Hits 728 728
Misses 939 939
Partials 106 106
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=footer). Last update [46bf1ef...5247008](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] membphis commented on a change in pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
membphis commented on a change in pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#discussion_r548008215
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -54,7 +54,7 @@ context('ssl smoke test', () => {
cy.contains('Settings').click();
cy.wait(500);
cy.url().should('contains', '/settings');
- cy.get('#grafanaURL').clear().type('https://www.baidu.com/');
+ cy.get('#grafanaURL').clear().type('https://www.apiseven.com/');
Review comment:
no no no, that is a bad name.
we can use `github.com` or `apisix.apache.org`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] juzhiyuan commented on a change in pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on a change in pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#discussion_r548814851
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* eslint-disable no-undef */
+
+context('settings page smoke test', () => {
Review comment:
```suggestion
context('Smoke Test for Setting page', () => {
```
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* eslint-disable no-undef */
+
+context('settings page smoke test', () => {
+ const domSelectors = {
+ pageContent: '.ant-pro-page-container',
+ notificationMsg: '.ant-notification-notice-message'
+ };
+
+ beforeEach(() => {
+ // init login
+ cy.login();
+ })
+
+ it('visit settings page', () => {
Review comment:
```suggestion
it('should visit settings page', () => {
```
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* eslint-disable no-undef */
+
+context('settings page smoke test', () => {
+ const domSelectors = {
+ pageContent: '.ant-pro-page-container',
+ notificationMsg: '.ant-notification-notice-message'
+ };
+
+ beforeEach(() => {
+ // init login
+ cy.login();
+ })
+
+ it('visit settings page', () => {
+ // go to settings page
+ cy.visit('/');
+ cy.contains('Settings').click();
+ cy.wait(500);
+ cy.url().should('contains', '/settings');
+ cy.get(domSelectors.pageContent)
+ .children()
+ .should('contain', 'Setting')
+ .and('contain', 'Grafana Address')
+ .and('contain', 'Grafana address should begin with HTTP or HTTPS')
+ });
+
+ it('set a invaild url', () => {
Review comment:
```suggestion
it('should set a invaild url', () => {
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] membphis merged pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
membphis merged pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] idbeta commented on a change in pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
idbeta commented on a change in pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#discussion_r548037534
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -16,7 +16,7 @@
*/
/* eslint-disable no-undef */
-context('ssl smoke test', () => {
+context('settings psge smoke test', () => {
Review comment:
my fault, fixed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] idbeta commented on a change in pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
idbeta commented on a change in pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#discussion_r548037676
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -54,7 +54,7 @@ context('ssl smoke test', () => {
cy.contains('Settings').click();
cy.wait(500);
cy.url().should('contains', '/settings');
- cy.get('#grafanaURL').clear().type('https://www.baidu.com/');
+ cy.get('#grafanaURL').clear().type('https://www.apiseven.com/');
Review comment:
good idea, fixed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] membphis commented on a change in pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
membphis commented on a change in pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#discussion_r549116708
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* eslint-disable no-undef */
+
+context('settings page smoke test', () => {
Review comment:
ping @idbeta
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] juzhiyuan commented on pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#issuecomment-751212299
ping @membphis @LiteSun
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] juzhiyuan commented on pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#issuecomment-751413508
ping
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] juzhiyuan commented on a change in pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on a change in pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#discussion_r547999824
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -16,7 +16,7 @@
*/
/* eslint-disable no-undef */
-context('ssl smoke test', () => {
+context('settings psge smoke test', () => {
Review comment:
typo
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] membphis commented on a change in pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
membphis commented on a change in pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#discussion_r547800195
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* eslint-disable no-undef */
+
+context('ssl smoke test', () => {
+ const domSelectors = {
+ pageContent: '.ant-pro-page-container',
+ notificationMsg: '.ant-notification-notice-message'
+ };
+
+ beforeEach(() => {
+ // init login
+ cy.login();
+ })
+
+ it('visit settings page', () => {
+ // go to settings page
+ cy.visit('/');
+ cy.contains('Settings').click();
+ cy.wait(500);
+ cy.url().should('contains', '/settings');
+ cy.get(domSelectors.pageContent)
+ .children()
+ .should('contain', 'Setting')
+ .and('contain', 'Grafana Address')
+ .and('contain', 'Grafana address should begin with HTTP or HTTPS')
+ });
+
+ it('set a invaild url', () => {
+ cy.visit('/');
+ cy.contains('Settings').click();
+ cy.wait(500);
+ cy.url().should('contains', '/settings');
+ cy.get('#grafanaURL').clear().type('httx://www.test.com');
+ cy.get('.ant-form-item-explain').should('contain', 'Address is illegality');
+ });
+
+ it('set a accessible url', () => {
+ cy.visit('/');
+ cy.contains('Settings').click();
+ cy.wait(500);
+ cy.url().should('contains', '/settings');
+ cy.get('#grafanaURL').clear().type('https://www.baidu.com/');
Review comment:
please change to another domain
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* eslint-disable no-undef */
+
+context('ssl smoke test', () => {
Review comment:
"ssl smoke" ??
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] codecov-io commented on pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
codecov-io commented on pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#issuecomment-749952748
# [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=h1) Report
> Merging [#1105](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=desc) (22c5b56) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/46bf1ef9cfe4f4c659752176424151bb4fc4952f?el=desc) (46bf1ef) will **not change** coverage.
> The diff coverage is `n/a`.
[![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/1105/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P)](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #1105 +/- ##
=======================================
Coverage 41.06% 41.06%
=======================================
Files 28 28
Lines 1773 1773
=======================================
Hits 728 728
Misses 939 939
Partials 106 106
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=footer). Last update [46bf1ef...22c5b56](https://codecov.io/gh/apache/apisix-dashboard/pull/1105?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] idbeta commented on a change in pull request #1105: test: add frontend e2e test (smoke test for settings page)
Posted by GitBox <gi...@apache.org>.
idbeta commented on a change in pull request #1105:
URL: https://github.com/apache/apisix-dashboard/pull/1105#discussion_r547990306
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* eslint-disable no-undef */
+
+context('ssl smoke test', () => {
Review comment:
my fault, fixed.
##########
File path: web/cypress/integration/settings/settings-smoketest.spec.js
##########
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* eslint-disable no-undef */
+
+context('ssl smoke test', () => {
+ const domSelectors = {
+ pageContent: '.ant-pro-page-container',
+ notificationMsg: '.ant-notification-notice-message'
+ };
+
+ beforeEach(() => {
+ // init login
+ cy.login();
+ })
+
+ it('visit settings page', () => {
+ // go to settings page
+ cy.visit('/');
+ cy.contains('Settings').click();
+ cy.wait(500);
+ cy.url().should('contains', '/settings');
+ cy.get(domSelectors.pageContent)
+ .children()
+ .should('contain', 'Setting')
+ .and('contain', 'Grafana Address')
+ .and('contain', 'Grafana address should begin with HTTP or HTTPS')
+ });
+
+ it('set a invaild url', () => {
+ cy.visit('/');
+ cy.contains('Settings').click();
+ cy.wait(500);
+ cy.url().should('contains', '/settings');
+ cy.get('#grafanaURL').clear().type('httx://www.test.com');
+ cy.get('.ant-form-item-explain').should('contain', 'Address is illegality');
+ });
+
+ it('set a accessible url', () => {
+ cy.visit('/');
+ cy.contains('Settings').click();
+ cy.wait(500);
+ cy.url().should('contains', '/settings');
+ cy.get('#grafanaURL').clear().type('https://www.baidu.com/');
Review comment:
fixed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org