Skip to content

Commit

Permalink
Merge pull request #457 from woocommerce/release/1.2.8
Browse files Browse the repository at this point in the history
Release/1.2.8
  • Loading branch information
dkotter authored Aug 28, 2024
2 parents 8f955e4 + 4fae4f2 commit c0b6e76
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 7 deletions.
8 changes: 8 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
*** Changelog ***

= 1.2.8 - 2024-08-28 =
* Fix - Ensure display of checkbox options shows correctly in an Accommodation product.
* Fix - Allow Accommodation product tabs to be ordered properly.
* Dev - Bump WooCommerce "tested up to" version 9.2.
* Dev - Bump WooCommerce minimum supported version to 9.0.
* Dev - Fix QIT E2E tests and add support for a few new test types.
* Dev - Update E2E tests to accommodate the changes in WooCommerce 9.2.

= 1.2.7 - 2024-07-15 =
* Dev - Bump WooCommerce "tested up to" version 9.0.
* Dev - Bump WooCommerce minimum supported version to 8.8.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "woocommerce-accommodation-bookings",
"title": "WooCommerce Accommodation Bookings",
"version": "1.2.7",
"version": "1.2.8",
"config": {
"wp_org_slug": "woocommerce-accommodation-bookings"
},
Expand Down
10 changes: 9 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: woocommerce, automattic
Tags: woocommerce, bookings, accommodations
Requires at least: 6.4
Tested up to: 6.6
Stable tag: 1.2.7
Stable tag: 1.2.8
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -38,6 +38,14 @@ If the prices shown on the product do not match the prices defined in the dashbo

== Changelog ==

= 1.2.8 - 2024-08-28 =
* Fix - Ensure display of checkbox options shows correctly in an Accommodation product.
* Fix - Allow Accommodation product tabs to be ordered properly.
* Dev - Bump WooCommerce "tested up to" version 9.2.
* Dev - Bump WooCommerce minimum supported version to 9.0.
* Dev - Fix QIT E2E tests and add support for a few new test types.
* Dev - Update E2E tests to accommodate the changes in WooCommerce 9.2.

= 1.2.7 - 2024-07-15 =
* Dev - Bump WooCommerce "tested up to" version 9.0.
* Dev - Bump WooCommerce minimum supported version to 8.8.
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/specs/product.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ test.describe('Product Tests', () => {

await expect(addToCardButton).toHaveClass(/disabled/);

await visitProductPage(page, productId);
await fillBookingStartDate(page, getFutureDate(1));
await fillBookingEndDate(
page,
Expand Down
7 changes: 6 additions & 1 deletion tests/e2e/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const api = require('./api');
*/
export async function switchTab(page, tabName, panelSelector = false) {
await page
.locator('.wc-tabs > li > a', { hasText: tabName })
.locator('.wc-tabs > li:visible > a', { hasText: tabName })
.last()
.click();
if (panelSelector) {
Expand Down Expand Up @@ -326,6 +326,11 @@ export async function addToCart(page) {
* @param {Object} customerDetails Customer billing details
*/
export async function blockFillBillingDetails(page, customerDetails) {
await page.waitForTimeout(3000);
const card = await page.locator('.wc-block-components-address-card');
if (await card.isVisible()) {
await card.locator('.wc-block-components-address-card__edit').click();
}
await page.locator('#email').fill(customerDetails.email);
await page.locator('#billing-first_name').fill(customerDetails.firstname);
await page.locator('#billing-last_name').fill(customerDetails.lastname);
Expand Down
4 changes: 2 additions & 2 deletions woocommerce-accommodation-bookings.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Requires Plugins: woocommerce
* Plugin URI: https://woocommerce.com/products/woocommerce-accommodation-bookings/
* Description: An accommodations add-on for the WooCommerce Bookings extension.
* Version: 1.2.7
* Version: 1.2.8
* Author: WooCommerce
* Author URI: https://woocommerce.com
* Text Domain: woocommerce-accommodation-bookings
Expand All @@ -27,7 +27,7 @@
exit;
}

define( 'WC_ACCOMMODATION_BOOKINGS_VERSION', '1.2.7' ); // WRCS: DEFINED_VERSION.
define( 'WC_ACCOMMODATION_BOOKINGS_VERSION', '1.2.8' ); // WRCS: DEFINED_VERSION.

require_once 'includes/class-wc-accommodation-bookings-plugin.php';
$wc_accom_plugin = new WC_Accommodation_Bookings_Plugin( __FILE__, WC_ACCOMMODATION_BOOKINGS_VERSION );
Expand Down

0 comments on commit c0b6e76

Please sign in to comment.