Skip to content

Commit

Permalink
GG-17466 Web Console: Fixed e2e tests. Fixes #15.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Borisov authored and akuznetsov-os committed Apr 29, 2019
1 parent a813e04 commit 1326c5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/web-console/e2e/testcafe/components/FormField.js
Expand Up @@ -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
Expand Down
Expand Up @@ -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')
Expand All @@ -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
Expand Down

0 comments on commit 1326c5e

Please sign in to comment.