-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typo with theme as SUT, add more tests
- Loading branch information
Showing
11 changed files
with
147 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...sts/Environment/__snapshots__/RunActivationCommandTest__test_theme_sut_activation__1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"--php_version": "7.4", | ||
"--wp": "stable", | ||
"--plugin": [ | ||
{ | ||
"slug": "woocommerce", | ||
"source": "woocommerce", | ||
"test_tags": [ | ||
"activation" | ||
], | ||
"action": "test" | ||
} | ||
], | ||
"--theme": [ | ||
{ | ||
"source": ".\/storefront-theme", | ||
"test_tags": [ | ||
"pre-activation" | ||
], | ||
"action": "bootstrap", | ||
"slug": "storefront" | ||
} | ||
], | ||
"--volume": [], | ||
"--php_extension": [], | ||
"--require": [], | ||
"--object_cache": false, | ||
"--skip_activating_plugins": true, | ||
"--tunnel": "no_tunnel", | ||
"--json": true, | ||
"--env": [], | ||
"--env_file": [] | ||
} |
11 changes: 10 additions & 1 deletion
11
...ests/Environment/__snapshots__/RunE2ECommandTest__test_plugin_and_theme_sut_theme__1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
...ts/Environment/__snapshots__/RunE2ECommandTest__test_theme_and_plugin_both_config__1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...vironment/__snapshots__/RunE2ECommandTest__test_theme_sut_with_additional_plugins__1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"--php_version": "7.4", | ||
"--wp": "stable", | ||
"--plugin": [ | ||
{ | ||
"slug": "woocommerce", | ||
"source": "woocommerce", | ||
"test_tags": [ | ||
"activation" | ||
], | ||
"action": "test" | ||
} | ||
], | ||
"--theme": [ | ||
{ | ||
"source": ".\/storefront-theme", | ||
"test_tags": [ | ||
"default" | ||
], | ||
"action": "test", | ||
"slug": "storefront" | ||
} | ||
], | ||
"--volume": [], | ||
"--php_extension": [], | ||
"--require": [], | ||
"--object_cache": false, | ||
"--skip_activating_plugins": false, | ||
"--tunnel": "no_tunnel", | ||
"--json": true, | ||
"--env": [], | ||
"--env_file": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/tests/data/rune2e-scenarios/scenario-theme-activation/qit.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
themes: | ||
storefront: | ||
source: "./storefront-theme" | ||
test_tags: | ||
- "default" |
6 changes: 6 additions & 0 deletions
6
src/tests/data/rune2e-scenarios/scenario-theme-activation/storefront-theme/style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
Theme Name: Storefront | ||
Author: Automattic | ||
Description: The perfect theme for your next WooCommerce project. | ||
Version: 2.5.0 | ||
*/ |
6 changes: 6 additions & 0 deletions
6
src/tests/data/rune2e-scenarios/scenario-theme-activation/tests/example.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test('Storefront theme activation test', async ({ page }) => { | ||
// Placeholder test | ||
expect(1).toBe(1); | ||
}); |