You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/12/28 03:03:18 UTC
[apisix-dashboard] branch master updated: test: enhance frontend
e2e test stability (consumer) (#1116)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 47e5345 test: enhance frontend e2e test stability (consumer) (#1116)
47e5345 is described below
commit 47e5345d09926bb8d360a666265dadbeeeec7274
Author: idbeta <id...@gmail.com>
AuthorDate: Mon Dec 28 11:03:09 2020 +0800
test: enhance frontend e2e test stability (consumer) (#1116)
* test: fix frontend e2e test (consumer test unstable)
* chore: change comment to lowercase
* chore: add ; symbol
Co-authored-by: 琚致远 <ju...@apache.org>
Co-authored-by: YuanSheng Wang <me...@gmail.com>
---
.../consumer/create_and_delete_consumer.spec.js | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/web/cypress/integration/consumer/create_and_delete_consumer.spec.js b/web/cypress/integration/consumer/create_and_delete_consumer.spec.js
index 188d284..bae929d 100644
--- a/web/cypress/integration/consumer/create_and_delete_consumer.spec.js
+++ b/web/cypress/integration/consumer/create_and_delete_consumer.spec.js
@@ -36,17 +36,17 @@ context('Create and Delete Consumer', () => {
cy.wait(sleepTime * 5);
cy.contains('Create').click();
- // Basic Information
+ // basic information
cy.get('#username').type(name);
cy.get('#desc').type('desc_by_autotest');
cy.contains('Next').click();
cy.wait(sleepTime * 3);
- // Plugin Config
+ // plugin config
cy.contains(domSelectors.pluginsCard, 'key-auth').within(() => {
cy.get('button').first().click();
})
- // edit CodeMirror
+ // edit codemirror
cy.get('.CodeMirror')
.first()
.then((editor) => {
@@ -57,6 +57,8 @@ context('Create and Delete Consumer', () => {
});
cy.contains('button', 'Next').click();
cy.contains('button', 'Submit').click();
+ cy.wait(sleepTime);
+ cy.get(domSelectors.notification).should('contain', 'Create Consumer Successfully');
});
it('delete the consumer', () => {
@@ -75,17 +77,17 @@ context('Create and Delete Consumer', () => {
cy.wait(sleepTime * 5);
cy.contains('Create').click();
- // Basic Information
+ // basic information
cy.get('#username').type(name);
cy.get('#desc').type('desc_by_autotest');
cy.contains('Next').click();
cy.wait(sleepTime * 3);
- // Plugin Config
+ // plugin config
cy.contains(domSelectors.pluginsCard, 'key-auth').within(() => {
cy.get('button').first().click();
})
- // edit CodeMirror
+ // edit codeMirror
cy.get('.CodeMirror')
.first()
.then((editor) => {