From 38da11fd996f7aebd322424bfbff9fe0a741460a Mon Sep 17 00:00:00 2001 From: Aarish <118203269+ImprobableGenius@users.noreply.github.com> Date: Thu, 22 May 2025 23:45:50 -0500 Subject: [PATCH] build methods to return site map url and site root url --- services/PlaywrightService.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/services/PlaywrightService.js b/services/PlaywrightService.js index 55f030f..25c17d6 100644 --- a/services/PlaywrightService.js +++ b/services/PlaywrightService.js @@ -12,7 +12,16 @@ class PlaywrightService { // constructor constructor(domain) { this.#domain = domain; - this.#url = `https://${domain}`; + } + + // get sitemap url for the this domain + sitemapUrl() { + return `${this.rootUrl()}/sitemap.xml`; + } + + // get the url of the site to be tested + rootUrl() { + return `https://${domain}`; } /**