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

Allow as element references inside of test blocks #646

Open
farism opened this issue Sep 3, 2023 · 0 comments
Open

Allow as element references inside of test blocks #646

farism opened this issue Sep 3, 2023 · 0 comments

Comments

@farism
Copy link
Contributor

farism commented Sep 3, 2023

Being able to do something like this could be convenient

suite "Button" {
  test "has a reference" {
      <button as btn/>
          |> Test.Html.start
          |> (ctx : Test.Context(Dom.Element)) {
            btn != Maybe::Nothing
          }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant