luckyframework / luckyframework/lucky_cli

Add BrowserClient for spec support

Open
#546 2 comments 2 reactions 0 assignees View on GitHub
feature request
Dominant language
HTML
Stars
92
Forks
48
PR merge metrics
No merged PRs in 30d

Description

We have `ApiClient` which helps you to test ApiAction specs, but now we need a `BrowserClient` for testing browser based actions when you're not using Flow.

There are a few catches with this that we need to take in to consideration:
* How do we handle sessions?
* How do we handle cookies?
* How do we handle doing a POST where the Content-Type might change from `text/html` to `application/x-www-form-urlencoded ` or even `multipart/form-data`?

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing ApiClient and ApiAction specs to understand the current spec-support behavior. Define how BrowserClient should handle sessions, cookies, and POST content types, then add coverage showing browser-based actions work without Flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
crystal
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.