Skip to content

To Do List #1

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

Open
ziadoz opened this issue Dec 26, 2024 · 3 comments
Open

To Do List #1

ziadoz opened this issue Dec 26, 2024 · 3 comments

Comments

@ziadoz
Copy link
Owner

ziadoz commented Dec 26, 2024

No description provided.

@ziadoz

This comment has been minimized.

@ziadoz
Copy link
Owner Author

ziadoz commented Jan 21, 2025

  • Finish readme documentation
  • Add assertView() and assertComponent() to mixins, update assertElement() to require selector
  • Consider renaming scope() to using() and add it to document
  • Consider renaming with()/many()/elsewhere() to find()/findMany()/findElsewhere()
  • Add CI for running tests and Pint
  • Create 1.x branch and tag release v0.1.0
  • Add to Packagist
  • Finish custom elements and components feature (post release)
  • Quick assertions (post release)

@ziadoz
Copy link
Owner Author

ziadoz commented Jan 22, 2025

Custom Element Assertions:

  • Assert things in order (e.g. table cells, list items).
  • Assert parsed URL parts (e.g. href contains hostname, path, querystring etc.) - assertUriAttribute(), assertUriAttributeEquals().

Quick Assertions

$el->assert()
   ->text('Hello, World')
   ->attrs(['id' => 'foo'])
   ->attr('data-bar', 'foo-bar')
   ->class(['foo', 'bar']);

// - text() accepts string or callable or null
// - attrs() accepts array or callable or null
// - attrs() accepts string or callable as 2nd param or null
// - class() accepts array or string(s) or null

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