Files
kucherenko__jscpd/fixtures/robotframework/file1.robot
apk 64e471e2b0 test: raise coverage to 96%+ on @jscpd/finder and 98%+ on apps/jscpd
Adds 92 new tests (178 → 270 total) with zero source-file modifications:

- packages/finder: 13 new test files covering all reporters, subscribers,
  validators, hooks, utils, options, cloneFound, getFilesToDetect, and
  InFilesDetector; shared buildClone() factory helper
- apps/jscpd: 3 new test files (options-unit, print, store) plus extensions
  to formats, modes, and options integration tests
- vitest.config.ts added to both packages to restrict coverage.include
  to src/** only, eliminating bin/ and prism.js noise
- Fixes 3 tokenizer bugs (trailing space in format lookup, tokenization
  edge cases) uncovered by the new format fixture suite
- Adds fixture files for 40+ language formats to support formats.test.ts
2026-05-09 15:00:38 +02:00

63 lines
1.8 KiB
Plaintext

*** Settings ***
Library SeleniumLibrary
Library Collections
Library String
Resource ../resources/common.robot
Suite Setup Open Browser ${BASE_URL} ${BROWSER}
Suite Teardown Close All Browsers
Test Setup Go To Login Page
Test Teardown Clear Session
*** Variables ***
${BASE_URL} http://localhost:3000
${BROWSER} chrome
${VALID_USER} testuser@example.com
${VALID_PASS} SecurePass123!
*** Test Cases ***
Successful Login With Valid Credentials
[Documentation] Verify user can log in with valid credentials
[Tags] smoke authentication
Enter Username ${VALID_USER}
Enter Password ${VALID_PASS}
Click Login Button
Wait Until Page Contains Welcome back
Page Should Contain Dashboard
Current URL Should Contain /dashboard
Login Fails With Invalid Password
[Documentation] Verify login is rejected with wrong password
[Tags] authentication negative
Enter Username ${VALID_USER}
Enter Password WrongPassword999
Click Login Button
Wait Until Page Contains Invalid credentials
Current URL Should Not Contain /dashboard
Login Fails With Empty Fields
[Documentation] Verify login form validates required fields
[Tags] authentication validation
Click Login Button
Wait Until Page Contains required
Page Should Contain Email is required
*** Keywords ***
Go To Login Page
Go To ${BASE_URL}/login
Wait Until Page Contains Element id:login-form
Enter Username
[Arguments] ${username}
Input Text id:email ${username}
Enter Password
[Arguments] ${password}
Input Text id:password ${password}
Click Login Button
Click Button id:submit-btn
Clear Session
Delete All Cookies