-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: Add Made with love by maibornwolff to the logo #3837 * fix: Update logo page object selectors for consistency #3940 --------- Co-authored-by: Christian Hühn <[email protected]>
- Loading branch information
1 parent
cc0765b
commit aaf953f
Showing
4 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
export class LogoPageObject { | ||
async getVersion() { | ||
await page.waitForSelector("#logo > h2") | ||
const versionString = await page.$eval("#logo > h2", element => element["innerText"]) | ||
await page.waitForSelector(".logo > #logo-version") | ||
const versionString = await page.$eval(".logo > #logo-version", element => element["innerText"]) | ||
return versionString.split(" ")[1] | ||
} | ||
|
||
async getLink() { | ||
await page.waitForSelector("#logo > a") | ||
return page.$eval("#logo > a", element => element["href"]) | ||
await page.waitForSelector(".logo > a") | ||
return page.$eval(".logo > a", element => element["href"]) | ||
} | ||
|
||
async getImageSrc() { | ||
await page.waitForSelector("#logo > a > img") | ||
return page.$eval("#logo > a > img", element => element["src"]) | ||
await page.waitForSelector(".logo > a > img") | ||
return page.$eval(".logo > a > img", element => element["src"]) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
<div id="logo"> | ||
<div class="logo"> | ||
<a href="https://github.com/MaibornWolff/codecharta" target="_blank" rel="noopener noreferrer"> | ||
<img src="codeCharta/assets/codecharta_logo.svg" alt="CodeCharta" rel="noopener noreferrer" | ||
/></a> | ||
<h2>Version {{ version }}</h2> | ||
/> | ||
</a> | ||
<p id="logo-version">Version {{ version }}</p> | ||
<p>Made with ❤ by <a target="_blank" href="https://www.maibornwolff.de/en/">MaibornWolff</a></p> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters