mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
ci: Playwright project organization (#17905)
This commit is contained in:
7
packages/testing/playwright/utils/url-helper.ts
Normal file
7
packages/testing/playwright/utils/url-helper.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Extract port from a URL string
|
||||
*/
|
||||
export function getPortFromUrl(url: string): string {
|
||||
const parsedUrl = new URL(url);
|
||||
return parsedUrl.port || (parsedUrl.protocol === 'https:' ? '443' : '80');
|
||||
}
|
||||
Reference in New Issue
Block a user