Protractor
universal
Our great sponsors
Protractor | universal | |
---|---|---|
19 | 22 | |
8,757 | 4,029 | |
-0.1% | 0.1% | |
0.0 | 8.2 | |
11 months ago | 5 months ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Protractor
-
Introduction to Cypress and UI Test Automation
Cypress is a next-generation front-end Automation testing tool built for modern web applications. It is a JavaScript-based end-to-end testing framework and is known for faster test execution as compared with other testing tools (like Selenium or Protractor).
-
Overview over Angular’s repositories
Protractor repo (link)
-
Nx 14.5 - Cypess v10, Output globs, Linter perf, React Tailwind support
Protractor has been deprecated for a while on the Angular CLI side and given Nx has had Cypress support for a while it has never been a popular choice. Starting with this release we're deprecating the generator for setting up Protractor and we're planning on removing support entirely in Nx v15.
-
Angular CLI and Nx - Why?
In recent releases, the Angular CLI kept reducing its feature set, mainly due to tools such as Protractor as well as TSLint being deprecated. As a result, starting with Angular 14, the Angular CLI provides the following when generating a new application:
-
Help with automatization
The Protractor testing framework was created for e2e testing of Angular apps. https://www.protractortest.org/
- Unit testing library for Angular application
-
Protractor is dead, long live Cypress! - Part 1
Future of Angular E2E & Plans for Protractor · Issue #5502 · angular/protractor
-
Angular 12 in Depth
In April, the Angular team has announced plans to end the support of Protractor at the end of 2022.
-
Looking for some advise/direction on a new testing framework
"The Angular team plans to end development of Protractor at the end of 2022 (in conjunction with Angular v15)." - https://github.com/angular/protractor/issues/5502
-
What UI testing framework do you use and what do you like/dislike about it?
Angular will deprecate Protractor soon https://github.com/angular/protractor/issues/5502
universal
-
Angular Standalone in SSR: update
Going to the source code of the CommonEngine we have this:
-
Angular vs. React vs. Vue.js: Comparing performance
Angular executes applications in the browser and renders pages in the DOM by default. This default method of rendering in the client comes with disadvantages like poor performance and lack of visibility for search engine crawlers. Luckily, Angular allows us to opt-in for server-side rendering (SSR) through Angular Universal, its official SSR solution.
- Angular Universal
-
Angular Universal SSR ESLint rules?
Example rules based on Angular Universal's gotchas:
-
Angular Universal, Standalone and Firebase
About standalone support there's this issue in angular/universal and yes, it is supported now 🥳 Tomorrow I'll try making it work in local
-
Http TransferHttpCacheModule for POST
Actually I notice in the last few days they might have done a fix for it = https://github.com/angular/universal/issues/1795
-
From Angular to Remix: Route by route migration
export function app(): express.Express { const server = express(); const distFolder = join(BROWSER_FILES_BASE_PATH, 'angular'); const indexHtml = existsSync(join(distFolder, 'index.original.html')) ? 'index.original.html' : 'index'; // Our Universal express-engine (found @ https://github.com/angular/universal/tree/main/modules/express-engine) server.engine( 'html', ngExpressEngine({ bootstrap: AppServerModule, }) ); server.set('view engine', 'html'); server.set('views', distFolder); server.use( '/browser', express.static(join(BROWSER_FILES_BASE_PATH, 'remix'), { immutable: true, maxAge: '1y', }) ); server.get( '/remix*', createRequestHandler({ build: require('../build/server/remix'), }) ); // Example Express Rest API endpoints // server.get('/api/**', (req, res) => { }); // Serve static files from /browser server.get( '*.*', express.static(distFolder, { maxAge: '1y', }) ); // All regular routes use the Universal engine server.get('*', (req, res) => { res.render(indexHtml, { req, providers: [{ provide: APP_BASE_HREF, useValue: req.baseUrl }], }); }); return server; }
-
Using a TransferHttpCacheModule for POST
I've located the module that already deals with the GET requests = https://github.com/angular/universal/blob/main/modules/common/src/transfer_http.ts So I've made my own interceptor and replaced the GETs mentioed on lines 75 and 95, however it doesn't seem to work. Only thing I can see is the original code references BrowserTransferStateModule which is crossed out. Do I need to replace that with something else?
- [Proposal]: Using WASM for Angular Universal
-
Angular 15 standalone HTTPClient provider: Another update
Do you inject a token that is provided by SSR? Even though standalone has not reached ExpressEngine, but if you have the root AppModule and the root AppComponent non standalone, you can still use provideHttpClient. To inject a server provided string (specifically, the serverUrl), you can use inject function like this:
What are some alternatives?
Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
awesome-react - A collection of awesome things regarding React ecosystem
WebdriverIO - Next-gen browser and mobile automation test framework for Node.js
material.angular.io - Docs site for Angular Components
TestCafe - A Node.js tool to automate end-to-end web testing.
ng-packagr - Compile and package Angular libraries in Angular Package Format (APF)
jest - Delightful JavaScript Testing.
ngcc-validation - Angular Ivy library compatibility validation project
Cypress - Fast, easy and reliable testing for anything that runs in a browser.
components - Component infrastructure and Material Design components for Angular
Nightmare - A high-level browser automation library.
logrocket-angular-landing-page