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

LinkField is covered by comprehensive Behat test coverage #98

Closed
maxime-rainville opened this issue Sep 28, 2023 · 1 comment
Closed

Comments

@maxime-rainville
Copy link

maxime-rainville commented Sep 28, 2023

Story

As a dev team, we want to know when our re-factoring is breaking things.

Acceptance

  • LinkField has comprehensive test coverage covering the current basic scenarios.
  • Both Entwine and Elemental scenarios are covered.

Note

  • Maxime had to create a side module to test this properly in AnyField.
  • We should be able to use DataExtensions with TestOnly.
  • We may do a follow up card to cover more esoteric use cases later on.

PR

@sabina-talipova
Copy link
Contributor

sabina-talipova commented Jan 30, 2024

List of Behat Test scenarios:

  • Link / MultiLink field is added to the page
  • Link / MultiLink field has full list of link types
  • Link / MultiLink field has restricted list of link types (test setAllowedTypes())
  • Link / MultiLink field is disabled
  • Link / MultiLink field is readonly
  • Link type has proper link type title and icon
  • Created links have proper link type title and icon
  • Link / MultiLink has versioned badge
  • User can create link of each type
  • User doesn’t have permission to create link
  • User can modify existing link of each type
  • User can reorder links in MultiLink filed
  • User can delete link
  • In the Elemental Area:
    • Link / MultiLink field can be added to a Block
    • Link / MultiLink field in the Block is disabled / readonly
    • Link / MultiLink field in the Block has restricted list of link types
    • Link type has proper link type title and icon
    • Created links have proper link type title / icon / versioned badge
    • User can create link of each type
    • User doesn’t have permission to create link
    • User can modify existing link of each type
    • User can reorder links in MultiLink filed
    • User can delete link
  • Save / Publish buttons state

Update:

  • LinkField accessibility
  • Render Links on a Page
  • Render Custom Link title on a Page
  • Render Default Link title

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

No branches or pull requests

3 participants