From 6082dddb182cbf5f9f9141c50a0c3619ac746ae6 Mon Sep 17 00:00:00 2001 From: dsorokin Date: Thu, 9 Sep 2021 11:49:00 +0200 Subject: [PATCH] Fix tests to pass after no default owning application is set --- tests/end2end/createEtForm.spec.js | 6 +++++- tests/end2end/createSubscriptionForm.spec.js | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/end2end/createEtForm.spec.js b/tests/end2end/createEtForm.spec.js index f0eae12..a7eedd8 100644 --- a/tests/end2end/createEtForm.spec.js +++ b/tests/end2end/createEtForm.spec.js @@ -23,7 +23,11 @@ describe('Create Event type form', function() { }) .selectByValue("#eventTypeCreateFormFieldAudience", 'component-internal') .isEnabled('button=Create Event Type').then(function(enabled) { - expect(enabled).toBeTruthy('Submit btn should be enabled if name is set') + expect(enabled).toBeFalsy('Submit btn should be disabled if owning application is not set') + }) + .setValue('#eventTypeCreateFormFieldOwningApplication', 'some-owning-app') + .isEnabled('button=Create Event Type').then(function(enabled) { + expect(enabled).toBeTruthy('Submit btn should be enabled if name and owning app are set') }) .click('button=Create Event Type') .waitForVisible(`span*=${eventTypeName}`, 10000) diff --git a/tests/end2end/createSubscriptionForm.spec.js b/tests/end2end/createSubscriptionForm.spec.js index eec6e76..4979595 100644 --- a/tests/end2end/createSubscriptionForm.spec.js +++ b/tests/end2end/createSubscriptionForm.spec.js @@ -21,6 +21,7 @@ describe('Create Subscription form', function() { }) .setValue('#subscriptionCreateFormFieldConsumerGroup', 'test-group') .setValue('#subscriptionCreateFormFieldEventTypes', eventTypeName) + .setValue('#subscriptionCreateFormFieldOwningApplication', 'someowningapplication') .isEnabled('button=Create Subscription').then(function(enabled) { expect(enabled).toBeTruthy('Submit btn should be enabled if name is set') })