You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by am...@apache.org on 2019/05/07 15:21:35 UTC

[ignite] 27/41: GG-17466 Web Console: Fixed e2e tests. Fixes #15.

This is an automated email from the ASF dual-hosted git repository.

amashenkov pushed a commit to branch gg-18540
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit 1326c5eaaba1a30b3e2a6856fcb333cf582df55d
Author: Ilya Borisov <ib...@gridgain.com>
AuthorDate: Mon Apr 29 14:36:34 2019 +0700

    GG-17466 Web Console: Fixed e2e tests. Fixes #15.
---
 modules/web-console/e2e/testcafe/components/FormField.js         | 2 +-
 modules/web-console/e2e/testcafe/fixtures/configuration/basic.js | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/web-console/e2e/testcafe/components/FormField.js b/modules/web-console/e2e/testcafe/components/FormField.js
index 9b577a0..1be4faf 100644
--- a/modules/web-console/e2e/testcafe/components/FormField.js
+++ b/modules/web-console/e2e/testcafe/components/FormField.js
@@ -51,7 +51,7 @@ export class FormField {
     async selectOption(label) {
         await t
             .click(this.control)
-            .click(Selector('.bssm-item-button').withText(label));
+            .click(this.control.find('option').withText(label));
     }
     /**
      * Get error element by error type
diff --git a/modules/web-console/e2e/testcafe/fixtures/configuration/basic.js b/modules/web-console/e2e/testcafe/fixtures/configuration/basic.js
index d6c178e..c38965f 100644
--- a/modules/web-console/e2e/testcafe/fixtures/configuration/basic.js
+++ b/modules/web-console/e2e/testcafe/fixtures/configuration/basic.js
@@ -56,7 +56,7 @@ test('Basic editing', async(t) => {
     const page = new PageConfigurationBasic();
     const clusterName = 'Test basic cluster #1';
     const localMode = 'LOCAL';
-    const atomic = 'ATOMIC';
+    const transactional = 'TRANSACTIONAL';
 
     await t
         .expect(page.buttonPreviewProject.visible).notOk('Preview project button is hidden for new cluster configs')
@@ -69,12 +69,12 @@ test('Basic editing', async(t) => {
     await cache1.startEdit();
     await t.typeText(cache1.fields.name.control, 'Foobar');
     await cache1.fields.cacheMode.selectOption(localMode);
-    await cache1.fields.atomicityMode.selectOption(atomic);
+    await cache1.fields.atomicityMode.selectOption(transactional);
     await cache1.stopEdit();
 
     await t.expect(cache1.getItemViewColumn(0).textContent).contains(`Cache1Foobar`, 'Can edit cache name');
     await t.expect(cache1.getItemViewColumn(1).textContent).eql(localMode, 'Can edit cache mode');
-    await t.expect(cache1.getItemViewColumn(2).textContent).eql(atomic, 'Can edit cache atomicity');
+    await t.expect(cache1.getItemViewColumn(2).textContent).eql(transactional, 'Can edit cache atomicity');
 
     await page.save();
     await t