Skip to content

Latest commit

 

History

67 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AngularE2ePlaywright

This project was generated with Angular CLI version 17.3.13.

Setup angular 17 app, without global cli version conflict:

npx @angular/cli@17 new my-app

npx @angular/cli@17 new my-app --no-standalone

Running end-to-end tests (General)

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Angular e2e options

Run playwright

all tests are in e2e folder

before this command, keep angular application running in another tab and then these commands

npx playwright test

npx playwright show-report

npx playwright show-trace

open browser manually (parallelly run ng serve in another terminal)

npx playwright test --headed

npx playwright test e2e/user-grid.spec.ts --headed

check if Allure results are actually being generated.

check if the allure-results/ folder is being created

npx playwright test --reporter=line,allure-playwright

If you haven't added the Angular Router yet:

ng g m app-routing --flat --module=app

🌟 How to View the Trace?

npx playwright show-trace test-results/<your-test-folder>/trace.zip

badges/shields in github actions

(main_14104423181_1) is the GitHub Actions run name.

⚡ But here’s the difference vs Bamboo:

Bamboo badges let you display a specific build number (483-master+483, etc.).

GitHub’s native workflow badge only shows status (passing / failing), not the run name or run number.

✅ 1. Build / Test Status Badges

Build Tests

✅ 2. Environment Deploy Badges

Option A: Separate Workflows Per Environment

Dev Deploy

Option B: Single Workflow with Multiple Jobs

Dev Deploy Tests

✅ 3. Build number Badges

Build Number

Build Number semi-automatic

Latest Build Number

Latest Build: Build

Build Badge

Disabling a GitHub Actions workflow is straightforward.

There are a couple of ways:

1️⃣ From GitHub Web UI

Go to your repository on GitHub.

Click on Actions tab.

In the left sidebar, select the workflow you want to disable.

Click the ⋯ (three dots) button on the top right of the workflow page.

Select Disable workflow.

✅ This stops it from running on any future triggers.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

About

angular 17 doesnt have default playwright option for e2e

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages