Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class Drupal\paragraphs\Entity\Paragraph does not exist #2

Open
kubakadzielawa opened this issue Oct 16, 2019 · 0 comments
Open

Class Drupal\paragraphs\Entity\Paragraph does not exist #2

kubakadzielawa opened this issue Oct 16, 2019 · 0 comments

Comments

@kubakadzielawa
Copy link

I'm using Drupal 8.7.6 and I have almost hundred Behat tests and everything works great. My problem is with more advanced tests which contains paragraphs. I started using ready contexts: https://github.com/dennisinteractive/behat-drupal-paragraphs

It is my behat-base.yml configuration

default:
  autoload:
    '': %paths.base%/bootstrap
  suites:
    default:
      drush: 'drush'
      paths: [ %paths.base%/features ]
      filters:
        tags: ~@wip&&~@broken
      contexts:
        - DennisDigital\Behat\Drupal\Paragraphs\Context\ParagraphsContext
        - Drupal\DrupalExtension\Context\MinkContext
        - Drupal\DrupalExtension\Context\MessageContext
        - Drupal\DrupalExtension\Context\DrushContext
  extensions:
    DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
    Behat\MinkExtension:
      base_url: "http://nginx:8080"
      files_path: %paths.base%/data-files
      sessions:
        default:
          chrome:
            api_url: "http://chrome:9222"
    Drupal\DrupalExtension:
      blackbox: ~
      api_driver: 'drush'
      drush:
        alias: 'self'
        root: %paths.base%/web

I wrote tests based on that configuration and I'm getting an error

Class Drupal\paragraphs\Entity\Paragraph does not exist

Here is my scenario:

@api
Scenario: Create an article and add paragraphs
 Given "article" content:
   | title | status |
   | Test  | 1      |
 Given I add the following paragraph to field "field_paragraphs":
   | paragraph_field | value     |
   | type            | text      |
   | field_text      | Some text |

Do you know why I'm getting that error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant