Skip to content

Commit

Permalink
Merge pull request #81 from DripEmail/eci-2071-test-new-versions
Browse files Browse the repository at this point in the history
ECI-2071 Test plugin with new versions
  • Loading branch information
diegodrip authored Sep 17, 2024
2 parents 43d6ae9 + 11cefaf commit 3e9d766
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions devtools_wp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM wordpress:6.3.1-php8.1-apache
FROM wordpress:6.6.2-php8.1-apache

RUN curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -o /usr/local/bin/wp && chmod +x /usr/local/bin/wp
RUN apt-get update && apt-get install -y less unzip vim wget vim-tiny net-tools

RUN curl https://downloads.wordpress.org/plugin/woocommerce.8.2.0.zip -o /usr/src/woocommerce.zip && cd /usr/src/wordpress/wp-content/plugins && unzip /usr/src/woocommerce.zip
RUN curl https://downloads.wordpress.org/plugin/woocommerce.9.3.1.zip -o /usr/src/woocommerce.zip && cd /usr/src/wordpress/wp-content/plugins && unzip /usr/src/woocommerce.zip
4 changes: 2 additions & 2 deletions devtools_wp/cypress/integration/OrderInteractions/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Then('I add a widget to my cart', () => {
})

Then("the page includes a Drip JS API call", () => {
cy.get('script[src="http://localhost:3007/wp-content/plugins/drip/src/customer_identify.js?ver=8.2.0"]').should('have.length', 1)
cy.get('script[src="http://localhost:3007/wp-content/plugins/drip/src/customer_identify.js?ver=9.3.1"]').should('have.length', 1)

cy.window().then(function(window) {
expect(window._dcq).to.have.lengthOf(1)
Expand All @@ -38,7 +38,7 @@ Then('I add a widget to my cart', () => {
})

Then("the page does not make Drip JS API call", () => {
cy.get('script[src="http://localhost:3007/wp-content/plugins/drip/src/customer_identify.js?ver=8.2.0"]').should('have.length', 0)
cy.get('script[src="http://localhost:3007/wp-content/plugins/drip/src/customer_identify.js?ver=9.3.1"]').should('have.length', 0)

cy.window().then(function(window) {
expect(Object.keys(window)).to.not.include('_dcq')
Expand Down
7 changes: 5 additions & 2 deletions devtools_wp/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.7'
name: drip-woocommerce
services:
web:
build: .
Expand All @@ -21,7 +21,10 @@ services:
- MYSQL_USER=woocommerce
- MYSQL_PASSWORD=woocommerce
- MYSQL_RANDOM_ROOT_PASSWORD=true
tmpfs: /var/lib/mysql
ports:
- 3307:3306
volumes:
- ./db_data/mysql:/var/lib/mysql
mock:
image: mockserver/mockserver:mockserver-5.14.0
# We need to use port 8080 for WP webhooks to work.
Expand Down
2 changes: 1 addition & 1 deletion drip.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
License: GPLv2
WC requires at least: 3.0
WC tested up to: 8.2.0
WC tested up to: 9.3.1
*/

defined( 'ABSPATH' ) || die( 'Executing outside of the WordPress context.' );
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: getdrip
Tags: ecommerce, emailmarketing, marketingautomation, emailmarketingautomation, woocommerce, drip
Requires at least: 4.6
Tested up to: 6.3.1
Tested up to: 6.6.2
Stable tag: 1.1.7
Requires PHP: 5.6
License: GPLv2
Expand Down

0 comments on commit 3e9d766

Please sign in to comment.