Merge pull request #3027 from Haendlerbund/bugfix-save-booking-products

#3026 fixed
This commit is contained in:
Jitendra Singh 2020-05-27 16:21:41 +05:30 committed by GitHub
commit 21eb34c64b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 38 deletions

View File

@ -7,37 +7,38 @@
</template>
<script>
import Flatpickr from "flatpickr";
import Flatpickr from "flatpickr";
export default {
props: {
name: String,
value: String
},
export default {
props: {
name: String,
value: String
},
data() {
return {
datepicker: null
};
},
data() {
return {
datepicker: null
};
},
created() {
created() {
},
},
mounted() {
var this_this = this;
mounted() {
var this_this = this;
var element = this.$el.getElementsByTagName("input")[0];
this.datepicker = new Flatpickr(element, {
allowInput: true,
altFormat: "Y-m-d H:i:S",
dateFormat: "Y-m-d H:i:S",
enableTime: true,
onChange: function(selectedDates, dateStr, instance) {
this_this.$emit('onChange', dateStr)
},
});
}
};
var element = this.$el.getElementsByTagName("input")[0];
this.datepicker = new Flatpickr(element, {
allowInput: true,
altFormat: "Y-m-d H:i:S",
dateFormat: "Y-m-d H:i:S",
enableTime: true,
time_24hr: true,
onChange: function (selectedDates, dateStr, instance) {
this_this.$emit('onChange', dateStr)
},
});
}
};
</script>

View File

@ -10,22 +10,18 @@ class CustomerCest
{
public $fields = [];
public function updateCustomerProfile(FunctionalTester $I)
public function updateCustomerProfile(FunctionalTester $I): void
{
$customer = $I->loginAsCustomer();
$I->amOnPage('/');
$I->click('Profile');
$I->click('Edit');
$I->selectOption('gender', 'Other');
$I->click('Update Profile');
$I->dontSeeInSource('The old password does not match.');
$I->seeInSource('Profile updated successfully.');
$I->seeRecord(Customer::class, [
@ -34,7 +30,7 @@ class CustomerCest
]);
}
public function updateCustomerAddress(FunctionalTester $I)
public function updateCustomerAddress(FunctionalTester $I): void
{
$I->wantTo('Instantiate a european faker factory to have the vat provider available');
$faker = \Faker\Factory::create('at_AT');
@ -46,9 +42,7 @@ class CustomerCest
$I->amOnPage('/');
$I->click('Profile');
$I->click('Address');
$I->click('Add Address');
$this->fields = [
@ -65,7 +59,7 @@ class CustomerCest
];
foreach ($this->fields as $key => $value) {
// the following fields are being rendered via javascript so we ignore them:
// the following fields are rendered via javascript so we ignore them:
if (! in_array($key, [
'country',
'state',
@ -111,8 +105,7 @@ class CustomerCest
}
/**
* @param \FunctionalTester $I
* @param array $fields
* @param FunctionalTester $I
*/
private function assertCustomerAddress(FunctionalTester $I): void
{