Skip to content

WebPlatformAutomation/www

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo project for Platform-UI

Install Platform-UI

npm install platform-ui-automation --save-dev

Create Test Directory and Profiles

The test directory test/e2e has the configuration for profiles:

dev: 
  baseUrl: http://localhost:3000

preview: 
  baseUrl: https://${branch}--www--webplatformautomation.hlx.page

live: 
  baseUrl: https://${branch}--www--webplatformautomation.hlx.live

prod: 
  baseUrl: https://www.webplatform4.com

acom:
  baseUrl: https://www.adobe.com

Run tests in the feature directory

Use the profile acom to run tests with the tag @id-1.

npx run test/e2e -p acom -t @id-1

Run test scripts in content

For example, the page under test is https://www.webplatform4.com/example.

The test script is in https://www.webplatform4.com/example-test.

Test example page on the local dev server.

npx run test/e2e -g example -p dev

Test example page on the Franklin preview

npx run test/e2e -g example -p preview

Test example page on the Franklin live

npx run test/e2e -g example -p live

Test example page on the production

npx run test/e2e -g example -p prod

Note: The directory features/site is created to store downloaded test scenarios. It's safe to delete it. Don't create new Cucumber scripts in the directory. For more run command options, see Platform-UI repo.

Use Step Definition Library

The test scenario @id-3 in test/e2e is a demo for using a step definition library. It needs the profile acom to run it.

npx run test/e2e -t @id-3 -p acom

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published