Skip to content

Commit

Permalink
Add test for minimum amount error message & IE styling fix
Browse files Browse the repository at this point in the history
Refs #20
  • Loading branch information
Ugoku committed May 6, 2021
1 parent 409288d commit 5559e1a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@

## 1.3.4 (2020-02-10)
* Buying vouchers is limited to 100
* Add inline error messages

## 1.3.3 (2020-02-04)
* Update event sending for Google Analytics integrated through Google Tag Manager
Expand Down
1 change: 1 addition & 0 deletions src/cssHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class RecrasCSSHelper {
-ms-grid-column: 1;
-ms-grid-column-span: 2;
grid-column: 1 / 3;
-ms-grid-row: 999; /* No specified row will place it on top of certain elements. This will put it at the very end */
}
.minimum-amount {
padding-left: 0.5em;
Expand Down
34 changes: 34 additions & 0 deletions test/js-unit/recrasBookingSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,40 @@ describe('RecrasBooking', () => {
// Mocks
rb.getSetting = mockGetSetting;
rb.getPackages = () => {
const packages = [{
id: 26,
onlineboeking_contactformulier_id: 4,
regels: [
{
id: 669,
max: 8,
onlineboeking_aantalbepalingsmethode: "invullen_door_gebruiker",
product: {
minimum_aantal: 5,
vereist_product: [],
}
},
{
id: 1337,
max: null,
onlineboeking_aantalbepalingsmethode: "invullen_door_gebruiker",
product: {
minimum_aantal: 1,
vereist_product: [],
}
},
{
id: 420,
aantal_personen: 10,
max: 80,
onlineboeking_aantalbepalingsmethode: "invullen_door_gebruiker",
product: {
minimum_aantal: 1,
vereist_product: [],
}
},
],
}];
rb.packages = packages;
return packages;
};
Expand Down

0 comments on commit 5559e1a

Please sign in to comment.