build methods to return site map url and site root url
This commit is contained in:
@@ -12,7 +12,16 @@ class PlaywrightService {
|
|||||||
// constructor
|
// constructor
|
||||||
constructor(domain) {
|
constructor(domain) {
|
||||||
this.#domain = 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}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user