Giter VIP home page Giter VIP logo

cypress's Issues

module has a hard dependency to workspace module without declaring it

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.

"Unable to create "symbolic" link due to error code 1314"

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

Best way to set Cypress base_url globally?

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.

cy.clearCookies() also clears SIMPLETEST_USER_AGENT

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.

Speedup installation of NPM dependencies

Currently NpmProjectManager::ensurePackageVersion() runs npm install for each dependency.

An alternative could be:

  • Start with a predefined package.json having merge-package.json in dependencies.
  • Use merge-package.json to merge all package.json files at once.

As a result, we will need to execute npm install only two times.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.