Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: E2E test using Playwright #2115

Draft
wants to merge 59 commits into
base: main
Choose a base branch
from
Draft

Conversation

gee05053
Copy link
Contributor

@gee05053 gee05053 commented Dec 21, 2023

This PR resolves #2081

Implement e2e test using playwright
Loop Doc

You must make .env file at playwright directory(webui/playwright/.env) and copy and paste below config

[email protected]
SUPER_ADMIN_PASSWORD=wJalrXUt
[email protected]
ADMIN_PASSWORD=cWbsM_vB
[email protected]
USER_PASSWORD=C8qnIo29
[email protected]
USER2_PASSWORD=P7oxTDdz
[email protected]
INCORRECT_PASSWORD=dasdnsajdnk
PAGE_URL=http://localhost:9081
ENDPOINT=http://localhost:8090
CREATE_VFOLDER_GROUP=test_peoject
NOT_CREATE_VFOLDER_GROUP=default
DELETE_VFOLDER=vMyFkaomKN9vkTORaywaleDayTjYGXwDyB4LPxUiLFvVAWCW2iFjEtJzzXZ8gNK3
NEW_SESSION_VERSION=Ubuntu 20.04 aarch64
NEW_SESSION_MOUNTED_VFOLDER=test
DELETE_SESSION=vNkj
CREATE_USER_NAME=test9
[email protected]
CREATE_USER_PASSWORD=test123!
[email protected]

How to run

  1. Follow extension guide to install extension
  2. Pull this branch
  3. Open test explorer at left side bar as in the picture below
스크린샷 2023-12-26 오후 6 03 33 4. Click to play button at test explorer or beside of code lines to run test 스크린샷 2023-12-26 오후 6 06 55 5. You can check the testing process through browser and test result on terminal 스크린샷 2023-12-26 오후 6 13 36 스크린샷 2023-12-26 오후 6 13 55

Checklist: (if applicable)

  • Mention to the original issue
  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

@gee05053 gee05053 marked this pull request as ready for review January 18, 2024 01:07
.eslintignore Outdated Show resolved Hide resolved
src/components/backend-ai-session-list.ts Outdated Show resolved Hide resolved
playwright/pages/CredentialPage.spec.ts Outdated Show resolved Hide resolved
playwright/pages/LoginPage.spec.ts Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Feb 13, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements 3.02% 102/3378
🔴 Branches 3.19% 69/2165
🔴 Functions 1.5% 17/1133
🔴 Lines 3.08% 102/3315

Test suite run success

20 tests passing in 4 suites.

Report generated by 🧪jest coverage report action from 278c09f

@yomybaby yomybaby marked this pull request as draft May 8, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:normal Need to understand a few modules / some extent of contextual or historical information. size:XL 500~ LoC type:enhance Add new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Let's implement E2E test using playwright
2 participants