Open dotherightthing opened 5 years ago
Cypress fails to run cy.visit()
, due to hardcoded example.org
values in /var/folders/0y/xxxxxxxx/T/wordpress-tests-lib/wp-tests-config.php
:
Replacing example.org
with localhost
, 127.0.0.1
or somelocalvirtualhost
does not help:
I may have been approaching this the wrong way.
Delicious Brains set up the page via WP CLI in the beforeEach lifecycle method in Cypress
See
$this->create_attachment
, intests/test-wpdtrt-gallery.php
, which uses PHPUnit, wp-cli, WP_UnitTestCase.This should be faster than loading a WordPress page, which has many other all plugins active, potential unreleased changes to themes and plugins etc (urgh).