From 4b90c3751867a2ba962137bd169af398fb4868b9 Mon Sep 17 00:00:00 2001 From: Frank Lam Date: Fri, 2 Feb 2024 13:06:09 +0900 Subject: [PATCH 1/2] Increase page load timeout Getting trolled in CI test runs right now --- tests/cypress.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/cypress.config.js b/tests/cypress.config.js index b4d301b..d167cc0 100644 --- a/tests/cypress.config.js +++ b/tests/cypress.config.js @@ -10,7 +10,9 @@ module.exports = defineConfig({ return require('./cypress/plugins/index.js')(on, config) }, baseUrl: 'http://localhost:8000', - defaultCommandTimeout: 6000 + defaultCommandTimeout: 6000, + // default pageLoadTimeout is 60000ms + pageLoadTimeout: 120000, }, retries: { runMode: 2, From c5edeedb8d5ddcb1850ef403e7d96a1b13f9549b Mon Sep 17 00:00:00 2001 From: Frank Lam Date: Fri, 2 Feb 2024 13:55:06 +0900 Subject: [PATCH 2/2] Use different API endpoint --- tests/cypress/e2e/admin.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cypress/e2e/admin.cy.js b/tests/cypress/e2e/admin.cy.js index a55f2b3..a74c895 100644 --- a/tests/cypress/e2e/admin.cy.js +++ b/tests/cypress/e2e/admin.cy.js @@ -32,7 +32,7 @@ describe('KOMOJU for WooCommerce: Admin', () => { cy.visit('/wp-admin/admin.php?page=wc-settings&tab=komoju_settings§ion=api_settings'); cy.get('.komoju-endpoint-komoju_woocommerce_api_endpoint').contains('Edit').click(); - cy.get('#komoju_woocommerce_api_endpoint').type('{selectAll}https://requestbin.labs.degica.com'); + cy.get('#komoju_woocommerce_api_endpoint').type('{selectAll}https://example.com'); cy.contains('Save changes').click(); cy.contains('Payment methods').click();