ORNL / DataFed

A Federated Scientific Data Management System
https://ornl.github.io/DataFed/
Other
18 stars 14 forks source link

Cheng web test #964

Closed dingc2 closed 1 month ago

dingc2 commented 3 months ago

Adding web test

JoshuaSBrown commented 2 months ago

Please add instructions for configuring and setting up Playwright.

dingc2 commented 2 months ago

Instructions to run playwright:

Passwords: In the auth.setup.js file, Passwords are currently accessed by storing a .env file in the web-UI directory. You can also place it in the environment, but make sure to un-require the dotenv node package in auth.setup.js

Make sure the URL is the desired one in auth.setup.js, change the line to the correct datafed link:

In order to run the test, you have to install all the node packages:

npm ci

Then install playwright as well as the browsers it uses

npx playwright install

To run the test:

npx playwright test

JoshuaSBrown commented 1 month ago

This is being closed in favor of this: https://github.com/ORNL/DataFed/pull/992