From 8cbc904a4edb94568aeb5b292a8a49bbc0686f94 Mon Sep 17 00:00:00 2001 From: Luca Tumedei Date: Wed, 4 Oct 2023 12:01:03 +0200 Subject: [PATCH] test(unit) update init template tests --- ...rectly_on_site_with_non_default_structure__0.snapshot | 1 + ...should_scaffold_for_child_theme_correctly__0.snapshot | 9 +++++---- ..._should_scaffold_for_multi_site_correctly__1.snapshot | 9 +++++---- ...ffold_for_plugin_with_non_plugin_php_file__0.snapshot | 9 +++++---- ...or_plugin_with_non_plugin_php_file_custom__0.snapshot | 1 + ..._scaffold_for_plugin_with_plugin_php_file__0.snapshot | 9 +++++---- ...ld_for_plugin_with_plugin_php_file_custom__0.snapshot | 1 + ...should_scaffold_for_single_site_correctly__1.snapshot | 9 +++++---- ...Test__should_scaffold_for_theme_correctly__0.snapshot | 9 +++++---- ...hould_scaffold_for_theme_custom_correctly__0.snapshot | 1 + 10 files changed, 34 insertions(+), 24 deletions(-) diff --git a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_correctly_on_site_with_non_default_structure__0.snapshot b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_correctly_on_site_with_non_default_structure__0.snapshot index ab4adaeea..c3678a437 100644 --- a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_correctly_on_site_with_non_default_structure__0.snapshot +++ b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_correctly_on_site_with_non_default_structure__0.snapshot @@ -20,6 +20,7 @@ modules: browser: chrome host: '%CHROMEDRIVER_HOST%' port: '%CHROMEDRIVER_PORT%' + path: '/' window_size: 1200x1000 capabilities: "goog:chromeOptions": diff --git a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_child_theme_correctly__0.snapshot b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_child_theme_correctly__0.snapshot index 66297982c..b6df4dd10 100644 --- a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_child_theme_correctly__0.snapshot +++ b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_child_theme_correctly__0.snapshot @@ -20,6 +20,7 @@ modules: browser: chrome host: '%CHROMEDRIVER_HOST%' port: '%CHROMEDRIVER_PORT%' + path: '/' window_size: 1200x1000 capabilities: "goog:chromeOptions": @@ -196,8 +197,8 @@ TEST_TABLE_PREFIX=test_ WORDPRESS_TABLE_PREFIX=wp_ # The URL and domain of the WordPress site used in end-to-end tests. -WORDPRESS_URL=http://localhost:64918 -WORDPRESS_DOMAIN=localhost:64918 +WORDPRESS_URL=http://localhost:52118 +WORDPRESS_DOMAIN=localhost:52118 # The username and password of the administrator user of the WordPress site used in end-to-end tests. WORDPRESS_ADMIN_USER=admin @@ -205,10 +206,10 @@ WORDPRESS_ADMIN_PASSWORD=password # The host and port of the ChromeDriver server that will be used in end-to-end tests. CHROMEDRIVER_HOST=localhost -CHROMEDRIVER_PORT=64931 +CHROMEDRIVER_PORT=52138 # The port on which the PHP built-in server will serve the WordPress installation. -BUILTIN_SERVER_PORT=64918 +BUILTIN_SERVER_PORT=52118 <<< /tests/.env <<< diff --git a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_multi_site_correctly__1.snapshot b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_multi_site_correctly__1.snapshot index 14da5973f..0c9d7739c 100644 --- a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_multi_site_correctly__1.snapshot +++ b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_multi_site_correctly__1.snapshot @@ -20,6 +20,7 @@ modules: browser: chrome host: '%CHROMEDRIVER_HOST%' port: '%CHROMEDRIVER_PORT%' + path: '/' window_size: 1200x1000 capabilities: "goog:chromeOptions": @@ -266,8 +267,8 @@ TEST_TABLE_PREFIX=test_ WORDPRESS_TABLE_PREFIX=wp_ # The URL and domain of the WordPress site used in end-to-end tests. -WORDPRESS_URL=http://localhost:59900 -WORDPRESS_DOMAIN=localhost:59900 +WORDPRESS_URL=http://localhost:52214 +WORDPRESS_DOMAIN=localhost:52214 # The username and password of the administrator user of the WordPress site used in end-to-end tests. WORDPRESS_ADMIN_USER=admin @@ -275,10 +276,10 @@ WORDPRESS_ADMIN_PASSWORD=password # The host and port of the ChromeDriver server that will be used in end-to-end tests. CHROMEDRIVER_HOST=localhost -CHROMEDRIVER_PORT=59916 +CHROMEDRIVER_PORT=52233 # The port on which the PHP built-in server will serve the WordPress installation. -BUILTIN_SERVER_PORT=59900 +BUILTIN_SERVER_PORT=52214 <<< /.env <<< diff --git a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_non_plugin_php_file__0.snapshot b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_non_plugin_php_file__0.snapshot index aacaf6e90..59ccd8e85 100644 --- a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_non_plugin_php_file__0.snapshot +++ b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_non_plugin_php_file__0.snapshot @@ -20,6 +20,7 @@ modules: browser: chrome host: '%CHROMEDRIVER_HOST%' port: '%CHROMEDRIVER_PORT%' + path: '/' window_size: 1200x1000 capabilities: "goog:chromeOptions": @@ -264,8 +265,8 @@ TEST_TABLE_PREFIX=test_ WORDPRESS_TABLE_PREFIX=wp_ # The URL and domain of the WordPress site used in end-to-end tests. -WORDPRESS_URL=http://localhost:64881 -WORDPRESS_DOMAIN=localhost:64881 +WORDPRESS_URL=http://localhost:52011 +WORDPRESS_DOMAIN=localhost:52011 # The username and password of the administrator user of the WordPress site used in end-to-end tests. WORDPRESS_ADMIN_USER=admin @@ -273,10 +274,10 @@ WORDPRESS_ADMIN_PASSWORD=password # The host and port of the ChromeDriver server that will be used in end-to-end tests. CHROMEDRIVER_HOST=localhost -CHROMEDRIVER_PORT=64894 +CHROMEDRIVER_PORT=52030 # The port on which the PHP built-in server will serve the WordPress installation. -BUILTIN_SERVER_PORT=64881 +BUILTIN_SERVER_PORT=52011 <<< /tests/.env <<< diff --git a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_non_plugin_php_file_custom__0.snapshot b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_non_plugin_php_file_custom__0.snapshot index ff1847b82..09562cdd2 100644 --- a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_non_plugin_php_file_custom__0.snapshot +++ b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_non_plugin_php_file_custom__0.snapshot @@ -25,6 +25,7 @@ modules: browser: chrome host: '%CHROMEDRIVER_HOST%' port: '%CHROMEDRIVER_PORT%' + path: '/' window_size: 1200x1000 capabilities: "goog:chromeOptions": diff --git a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_plugin_php_file__0.snapshot b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_plugin_php_file__0.snapshot index 38d143b99..0c39dbd48 100644 --- a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_plugin_php_file__0.snapshot +++ b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_plugin_php_file__0.snapshot @@ -25,6 +25,7 @@ modules: browser: chrome host: '%CHROMEDRIVER_HOST%' port: '%CHROMEDRIVER_PORT%' + path: '/' window_size: 1200x1000 capabilities: "goog:chromeOptions": @@ -269,8 +270,8 @@ TEST_TABLE_PREFIX=test_ WORDPRESS_TABLE_PREFIX=wp_ # The URL and domain of the WordPress site used in end-to-end tests. -WORDPRESS_URL=http://localhost:64864 -WORDPRESS_DOMAIN=localhost:64864 +WORDPRESS_URL=http://localhost:51968 +WORDPRESS_DOMAIN=localhost:51968 # The username and password of the administrator user of the WordPress site used in end-to-end tests. WORDPRESS_ADMIN_USER=admin @@ -278,10 +279,10 @@ WORDPRESS_ADMIN_PASSWORD=password # The host and port of the ChromeDriver server that will be used in end-to-end tests. CHROMEDRIVER_HOST=localhost -CHROMEDRIVER_PORT=64877 +CHROMEDRIVER_PORT=51983 # The port on which the PHP built-in server will serve the WordPress installation. -BUILTIN_SERVER_PORT=64864 +BUILTIN_SERVER_PORT=51968 <<< /tests/.env <<< diff --git a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_plugin_php_file_custom__0.snapshot b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_plugin_php_file_custom__0.snapshot index 5999c6557..96c42e650 100644 --- a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_plugin_php_file_custom__0.snapshot +++ b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_plugin_with_plugin_php_file_custom__0.snapshot @@ -25,6 +25,7 @@ modules: browser: chrome host: '%CHROMEDRIVER_HOST%' port: '%CHROMEDRIVER_PORT%' + path: '/' window_size: 1200x1000 capabilities: "goog:chromeOptions": diff --git a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_single_site_correctly__1.snapshot b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_single_site_correctly__1.snapshot index bcc23d9c7..a2207738e 100644 --- a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_single_site_correctly__1.snapshot +++ b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_single_site_correctly__1.snapshot @@ -20,6 +20,7 @@ modules: browser: chrome host: '%CHROMEDRIVER_HOST%' port: '%CHROMEDRIVER_PORT%' + path: '/' window_size: 1200x1000 capabilities: "goog:chromeOptions": @@ -266,8 +267,8 @@ TEST_TABLE_PREFIX=test_ WORDPRESS_TABLE_PREFIX=wp_ # The URL and domain of the WordPress site used in end-to-end tests. -WORDPRESS_URL=http://localhost:59872 -WORDPRESS_DOMAIN=localhost:59872 +WORDPRESS_URL=http://localhost:52169 +WORDPRESS_DOMAIN=localhost:52169 # The username and password of the administrator user of the WordPress site used in end-to-end tests. WORDPRESS_ADMIN_USER=admin @@ -275,10 +276,10 @@ WORDPRESS_ADMIN_PASSWORD=password # The host and port of the ChromeDriver server that will be used in end-to-end tests. CHROMEDRIVER_HOST=localhost -CHROMEDRIVER_PORT=59884 +CHROMEDRIVER_PORT=52182 # The port on which the PHP built-in server will serve the WordPress installation. -BUILTIN_SERVER_PORT=59872 +BUILTIN_SERVER_PORT=52169 <<< /.env <<< diff --git a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_theme_correctly__0.snapshot b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_theme_correctly__0.snapshot index f14f2d6c6..141cd6d20 100644 --- a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_theme_correctly__0.snapshot +++ b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_theme_correctly__0.snapshot @@ -20,6 +20,7 @@ modules: browser: chrome host: '%CHROMEDRIVER_HOST%' port: '%CHROMEDRIVER_PORT%' + path: '/' window_size: 1200x1000 capabilities: "goog:chromeOptions": @@ -196,8 +197,8 @@ TEST_TABLE_PREFIX=test_ WORDPRESS_TABLE_PREFIX=wp_ # The URL and domain of the WordPress site used in end-to-end tests. -WORDPRESS_URL=http://localhost:64901 -WORDPRESS_DOMAIN=localhost:64901 +WORDPRESS_URL=http://localhost:52071 +WORDPRESS_DOMAIN=localhost:52071 # The username and password of the administrator user of the WordPress site used in end-to-end tests. WORDPRESS_ADMIN_USER=admin @@ -205,10 +206,10 @@ WORDPRESS_ADMIN_PASSWORD=password # The host and port of the ChromeDriver server that will be used in end-to-end tests. CHROMEDRIVER_HOST=localhost -CHROMEDRIVER_PORT=64914 +CHROMEDRIVER_PORT=52090 # The port on which the PHP built-in server will serve the WordPress installation. -BUILTIN_SERVER_PORT=64901 +BUILTIN_SERVER_PORT=52071 <<< /tests/.env <<< diff --git a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_theme_custom_correctly__0.snapshot b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_theme_custom_correctly__0.snapshot index b50e1c903..cd4dd2356 100644 --- a/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_theme_custom_correctly__0.snapshot +++ b/tests/unit/Codeception/Template/__snapshots__/WpbrowserTest__should_scaffold_for_theme_custom_correctly__0.snapshot @@ -27,6 +27,7 @@ modules: browser: chrome host: '%CHROMEDRIVER_HOST%' port: '%CHROMEDRIVER_PORT%' + path: '/' window_size: 1200x1000 capabilities: "goog:chromeOptions":