amazeelabs / cypress Goto Github PK
View Code? Open in Web Editor NEWCypress integration for Drupal
Cypress integration for Drupal
this will lead to a PHP error when trying to enable the module.
PHP Fatal error: Interface 'Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface' not found in /var/www/web/modules/contrib/cypress/src/Negotiator/CypressWorkspaceNegotiator.php on line 18
PHP Stack trace:
PHP 1. {main}() /var/www/vendor/drush/drush/drush:0
PHP 2. require() /var/www/vendor/drush/drush/drush:4
PHP 3. Drush\Runtime\Runtime->run() /var/www/vendor/drush/drush/drush.php:72
PHP 4. Drush\Runtime\Runtime->doRun() /var/www/vendor/drush/drush/src/Runtime/Runtime.php:49
PHP 5. Drush\Application->run() /var/www/vendor/drush/drush/src/Runtime/Runtime.php:118
PHP 6. Drush\Application->doRun() /var/www/vendor/symfony/console/Application.php:148
PHP 7. Drush\Application->doRunCommand() /var/www/vendor/symfony/console/Application.php:255
PHP 8. Consolidation\AnnotatedCommand\AnnotatedCommand->run() /var/www/vendor/symfony/console/Application.php:1000
PHP 9. Consolidation\AnnotatedCommand\AnnotatedCommand->execute() /var/www/vendor/symfony/console/Command/Command.php:255
PHP 10. Consolidation\AnnotatedCommand\CommandProcessor->process() /var/www/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:302
PHP 11. Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter() /var/www/vendor/consolidation/annotated-command/src/CommandProcessor.php:176
PHP 12. Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback() /var/www/vendor/consolidation/annotated-command/src/CommandProcessor.php:212
PHP 13. call_user_func_array:{/var/www/vendor/consolidation/annotated-command/src/CommandProcessor.php:257}() /var/www/vendor/consolidation/annotated-command/src/CommandProcessor.php:257
PHP 14. Drush\Drupal\Commands\pm\PmCommands->enable() /var/www/vendor/consolidation/annotated-command/src/CommandProcessor.php:257
PHP 15. Drupal\Core\ProxyClass\Extension\ModuleInstaller->install() /var/www/vendor/drush/drush/src/Drupal/Commands/pm/PmCommands.php:78
PHP 16. Drupal\Core\Extension\ModuleInstaller->install() /var/www/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
PHP 17. Drupal\Core\Extension\ModuleInstaller->updateKernel() /var/www/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:211
PHP 18. Drush\Drupal\DrupalKernel->updateModules() /var/www/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:573
PHP 19. Drush\Drupal\DrupalKernel->initializeContainer() /var/www/web/core/lib/Drupal/Core/DrupalKernel.php:826
PHP 20. Drush\Drupal\DrupalKernel->initializeContainer() /var/www/vendor/drush/drush/src/Drupal/DrupalKernelTrait.php:69
PHP 21. Drush\Drupal\DrupalKernel->compileContainer() /var/www/web/core/lib/Drupal/Core/DrupalKernel.php:902
PHP 22. Drupal\Core\DependencyInjection\ContainerBuilder->compile() /var/www/web/core/lib/Drupal/Core/DrupalKernel.php:1321
PHP 23. Symfony\Component\DependencyInjection\Compiler\Compiler->compile() /var/www/vendor/symfony/dependency-injection/ContainerBuilder.php:789
PHP 24. Drupal\webprofiler\Compiler\ServicePass->process() /var/www/vendor/symfony/dependency-injection/Compiler/Compiler.php:140
PHP 25. Drupal\webprofiler\Compiler\ServicePass->extractData() /var/www/web/modules/contrib/devel/webprofiler/src/Compiler/ServicePass.php:26
PHP 26. ReflectionClass->__construct() /var/www/web/modules/contrib/devel/webprofiler/src/Compiler/ServicePass.php:73
PHP 27. spl_autoload_call() /var/www/web/modules/contrib/devel/webprofiler/src/Compiler/ServicePass.php:73
PHP 28. Composer\Autoload\ClassLoader->loadClass() /var/www/web/modules/contrib/devel/webprofiler/src/Compiler/ServicePass.php:73
PHP 29. Composer\Autoload\includeFile() /var/www/vendor/composer/ClassLoader.php:322
PHP 30. include() /var/www/vendor/composer/ClassLoader.php:444
Is there a way around this? I do not want to enable workspaces just to run my tests.
When I run drush cypress:run
, i get the following error:
In Filesystem.php line 391:
Unable to create "symbolic" link due to error code 1314: 'A required privilege is not held by the client'. Do you have the required Administrator-rights?
My account has admin privileges but my terminal session, does not. If I run from a elevated terminal, it appears to work.
I think Windows require an elevated terminal to use symbolic links. It there another way I can use this package without requiring an elevated terminal?
OS: Win10
PHP: 7.3
Drupal: 8.9.1
It seems like the cypress runner uses http://localhost:8888
as the default base_url
. What is the best way to set this variable globally so all tests for a site use a custom one? In non-Drupal projects I'd just put this in the cypress.json
file, but the only cypress.json
file I see is in the drupal-cypress-environment
directory, which is git ignored and seems to get rebuilt with every test run.
I've been able to set a custom base url by running export CYPRESS_BASE_URL=http://local.mysiteimtesting.com && drush cypress:run
but I'd prefer not to have to pass in env variables this way.
I appreciate any help with this, and thanks for making this integration module for Drupal.
Might lead to hard to debug problems since the next request will execute against sites/default
instead of the test site. cy.clearCookies
should be replaced to clear cookies except SIMPLETEST_USER_AGENT
.
Currently NpmProjectManager::ensurePackageVersion()
runs npm install
for each dependency.
An alternative could be:
package.json
having merge-package.json in dependencies.merge-package.json
to merge all package.json
files at once.As a result, we will need to execute npm install
only two times.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.