Skip to content

Login works (xUnit)

### ✅ Login works
Tags: `smoke`, `auth`
- **Given** the user is on the login page
- **When** the user logs in with valid credentials
- **Then** the user should be logged in
using ExecutableStories.Xunit;
using Xunit;
public class LoginTests : IDisposable
{
[Fact]
public void LoginWorks()
{
Story.Init("Login works", "smoke", "auth");
Story.Given("the user is on the login page");
Story.When("the user logs in with valid credentials");
Story.Then("the user should be logged in");
}
public void Dispose() => Story.RecordAndClear();
}