Files
kitchensink/src/Strata.KitchenSink.Web/e2e/cypress/pageObjects/login.ts
T
Thom Lamb 0979371a57 feat: Initialize Strata KitchenSink application boilerplate
This sets up the foundational structure for a .NET Core 6 / React project,
demonstrating common architectural patterns, Docker integration, and key
Strata libraries for API, data access (EF Core), background jobs (Hangfire),
real-time communication (SignalR), and various frontend UI components.
2026-06-23 10:58:15 -05:00

22 lines
615 B
TypeScript

export function loginLocally() {
cy.login(
Cypress.env('username'),
Cypress.env('password'),
Cypress.env('dbguid'),
Cypress.env('clientId'));
}
export function loginInteractively() {
cy.visit('/');
enterText('Email or Username', Cypress.env('username'));
cy.findAllByRole('button', { name: 'Next' }).click();
enterText('Password', Cypress.env('password'));
enterText('Org PIN', Cypress.env('orgPin'));
cy.findAllByRole('button', { name: 'Next' }).click();
}
function enterText(name: string, value: string) {
cy.findByLabelText(name).type(value);
}