From b23b03125f5938f5be4284dc0d4c98cc1f2a6b9a Mon Sep 17 00:00:00 2001 From: Nico Schedel Date: Mon, 4 Nov 2019 09:41:06 +0100 Subject: [PATCH] TT#68016 selenium: create domain with proper reseller now controller_subscriber.t: - create domain with previously created reseller instead of the default one, because subscribers cant access domains which do not have the same reseller as the customer Change-Id: Ia1cb1f63ab21e3d4f2988d4ce275b8f2586832d5 --- t/selenium/controller_subscriber.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/selenium/controller_subscriber.t b/t/selenium/controller_subscriber.t index 2acff25321..88581bff0f 100644 --- a/t/selenium/controller_subscriber.t +++ b/t/selenium/controller_subscriber.t @@ -29,9 +29,9 @@ my $billingname = ("billing" . int(rand(100000)) . "test"); my $run_ok = 0; $c->login_ok(); -$c->create_domain($domainstring); $c->create_reseller_contract($contractid); $c->create_reseller($resellername, $contractid); +$c->create_domain($domainstring, $resellername); $c->create_contact($contactmail, $resellername); $c->create_billing_profile($billingname, $resellername); $c->create_customer($customerid, $contactmail, $billingname); @@ -412,11 +412,11 @@ $d->fill_element('//*[@id="subscriber_profile_sets_table_filter"]/label/input', ok($d->find_element_by_css('#subscriber_profile_sets_table tr > td.dataTables_empty'), 'Subscriber Profile Set has been deleted'); $c->delete_customer($customerid); +$c->delete_domain($domainstring); $c->delete_reseller_contract($contractid); $c->delete_reseller($resellername); $c->delete_contact($contactmail); $c->delete_billing_profile($billingname); -$c->delete_domain($domainstring); diag("This test run was successfull"); $run_ok = 1;