build methods to return site map url and site root url

This commit is contained in:
Aarish
2025-05-22 23:45:50 -05:00
parent eece05bced
commit 38da11fd99

View File

@@ -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}`;
}
/**