UNPKG

testgenius-ai

Version:

🚀 TestGenius AI - The Ultimate E2E Testing Framework for Everyone | No Coding Required • AI-Powered Automation • Beautiful Reports • Zero Complexity

154 lines • 5.87 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BDD_LOGIN_TEST = void 0; // BDD Login Test for Cheq Partner Portal exports.BDD_LOGIN_TEST = { "id": "bdd-login-test", "name": "BDD Login Test - Cheq Partner Portal", "description": "BDD-style login test for Cheq Partner Portal with error validation and successful login", "priority": "High", "tags": [ "bdd", "login", "validation", "cheq", "partner-portal" ], "site": "https://partner.uat.cheq.io/login", "testData": { "steps": [ // Background steps { "action": "navigate", "description": "Navigate to Cheq Partner Portal login page", "target": "https://partner.uat.cheq.io/login", "timestamp": new Date().toISOString() }, { "action": "clear_field", "description": "Clear email field", "target": "email", "timestamp": new Date().toISOString() }, { "action": "clear_field", "description": "Clear password field", "target": "password", "timestamp": new Date().toISOString() }, // Scenario 1: Error on empty fields { "action": "click", "description": "Click Login button with empty fields", "target": "Login", "timestamp": new Date().toISOString() }, { "action": "verify_field_error", "description": "Verify email field has error", "target": "email", "timestamp": new Date().toISOString() }, { "action": "verify_field_error", "description": "Verify password field has error", "target": "password", "timestamp": new Date().toISOString() }, // Scenario 2: Invalid login { "action": "clear_field", "description": "Clear email field for invalid login test", "target": "email", "timestamp": new Date().toISOString() }, { "action": "clear_field", "description": "Clear password field for invalid login test", "target": "password", "timestamp": new Date().toISOString() }, { "action": "type", "description": "Type invalid email", "target": "email", "value": "wrong@cheq.io", "timestamp": new Date().toISOString() }, { "action": "type", "description": "Type invalid password", "target": "password", "value": "wrongpass", "timestamp": new Date().toISOString() }, { "action": "click", "description": "Click Login button with invalid credentials", "target": "Login", "timestamp": new Date().toISOString() }, { "action": "verify", "description": "Verify invalid login error message appears", "target": "error message", "value": "Not a Cheq user?", "timestamp": new Date().toISOString() }, // Scenario 3: Successful login { "action": "clear_field", "description": "Clear email field for successful login", "target": "email", "timestamp": new Date().toISOString() }, { "action": "clear_field", "description": "Clear password field for successful login", "target": "password", "timestamp": new Date().toISOString() }, { "action": "type", "description": "Type correct email for successful login", "target": "email", "value": "test@cheq.io", "timestamp": new Date().toISOString() }, { "action": "type", "description": "Type correct password for successful login", "target": "password", "value": "getCheq1!", "timestamp": new Date().toISOString() }, { "action": "click", "description": "Click Login button for successful login", "target": "Login", "timestamp": new Date().toISOString() }, { "action": "wait-time", "description": "Wait a few seconds for page to load", "target": "3", "timestamp": new Date().toISOString() }, { "action": "verify", "description": "Verify Business Profile page is shown after successful login", "target": "Business Profile page", "value": "Business Profile", "timestamp": new Date().toISOString() }, { "action": "screenshot", "description": "Take screenshot of successful login to Business Profile", "target": "business-profile-page", "timestamp": new Date().toISOString() } ] }, "task": "BDD Login Test for Cheq Partner Portal: Test empty field validation, invalid login error, and successful login to Business Profile page" }; //# sourceMappingURL=bdd-login-test.js.map