Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/actions/tests/install-wordpress-with-plugins/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,24 @@ runs:
run: |
cd ${{ github.workspace }}/tests/cypress/e2e/${{ matrix.cypress-target }}
plugins=$(cat ./installation-list.json | jq -r '.plugins[]')
for plugin in $plugins; do
echo "Installing $plugin plugin"

for entry in $plugins; do
# Entries are "slug" or "slug@version" to pin a WordPress.org release.
plugin="${entry%@*}"
version="latest-stable"
if [[ "$entry" == *@* ]]; then
version="${entry#*@}"
fi

echo "Installing $plugin plugin ($version)"

paid_plugin_path="${{ inputs.paid_plugins_dir }}/$plugin.zip"

if [[ -f "$paid_plugin_path" ]]; then
echo "Found paid plugin ZIP for $plugin in the paid plugins directory."
unzip "$paid_plugin_path" -d ${{ github.workspace }}/wp-content/plugins/
else
echo "No local ZIP for $plugin, downloading from WordPress repository."
curl -L -o "$plugin.zip" "https://downloads.wordpress.org/plugin/$plugin.latest-stable.zip"
curl -fL -o "$plugin.zip" "https://downloads.wordpress.org/plugin/$plugin.$version.zip"
unzip "$plugin.zip" -d ${{ github.workspace }}/wp-content/plugins/
rm "$plugin.zip"
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AboutAppComponent extends React.Component {
}
buttonComponentProperties={{
label: "Open the Portal",
href: "https://portal.prosopo.io",
href: "https://portal.prosopo.io/?utm_source=procaptcha-wp&utm_medium=plugin&utm_campaign=settings&utm_content=statistics-about",
icon: "icon-[material-symbols--settings-account-box-outline]",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class TrafficAnalyticsComponent extends React.Component<TrafficAnalyticsComponen
}
buttonComponentProperties={{
label: "View the traffic analytics",
href: "https://portal.prosopo.io/traffic",
href: "https://portal.prosopo.io/traffic?utm_source=procaptcha-wp&utm_medium=plugin&utm_campaign=settings&utm_content=statistics-traffic",
icon: "icon-[material-symbols--insert-chart]",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ protected function setCustomDefaults(): void {
);

$this->button_label = __( 'Upgrade', 'prosopo-procaptcha' );
$this->button_url = 'https://portal.prosopo.io/';
$this->button_url = 'https://portal.prosopo.io/?utm_source=procaptcha-wp&utm_medium=plugin&utm_campaign=settings&utm_content=upgrade-banner';
}
}
4 changes: 2 additions & 2 deletions prosopo-procaptcha/src/Settings/General/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ __( 'Prosopo Procaptcha', 'prosopo-procaptcha' ) }}
</h1>
<a class="text-[13px] mt-1 text-blue underline transition
hover:text-black" href="https://prosopo.io/" target="_blank">
hover:text-black" href="https://prosopo.io/?utm_source=procaptcha-wp&amp;utm_medium=plugin&amp;utm_campaign=settings&amp;utm_content=header" target="_blank">
{{ __( 'Visit Website', 'prosopo-procaptcha' ) }}
</a>
<a class="text-[13px] mt-1 text-blue underline transition
Expand All @@ -22,7 +22,7 @@
{{ __( 'Open Docs', 'prosopo-procaptcha' ) }}
</a>
<a class="text-[13px] mt-1 text-blue underline transition
hover:text-black" href="https://portal.prosopo.io/"
hover:text-black" href="https://portal.prosopo.io/?utm_source=procaptcha-wp&amp;utm_medium=plugin&amp;utm_campaign=settings&amp;utm_content=header"
target="_blank">
{{ __( 'Visit Portal', 'prosopo-procaptcha' ) }}
</a>
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/e2e/form-plugins/installation-list.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"plugins": [
"contact-form-7",
"contact-form-7@6.1.4",
"everest-forms",
"fluentform",
"formidable",
Expand Down
Loading