alessandro trinca tornidor
commited on
Commit
·
be63104
1
Parent(s):
15f45fc
test: improved error logs on playwright test-classic-1* test cases
Browse files
static/tests/test-helper.ts
CHANGED
|
@@ -359,7 +359,14 @@ export async function assertVisibleTextAfterNavigation(page: Page, idElement: st
|
|
| 359 |
// assert visible gametext
|
| 360 |
|
| 361 |
if (projectName !== "MobileChromeLandscape") {
|
| 362 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 363 |
} else {
|
| 364 |
try {
|
| 365 |
await expect(page.locator(idElementContentEditable)).toHaveScreenshot()
|
|
|
|
| 359 |
// assert visible gametext
|
| 360 |
|
| 361 |
if (projectName !== "MobileChromeLandscape") {
|
| 362 |
+
console.error("assertVisibleTextAfterNavigation::expectedString:", expectedString, "#")
|
| 363 |
+
try {
|
| 364 |
+
await expectVisibleTextWithWalker(page, idElementContentEditable, expectedString)
|
| 365 |
+
} catch (err) {
|
| 366 |
+
console.error("assertVisibleTextAfterNavigation::expectedString_FAILED:", expectedString, "#")
|
| 367 |
+
console.error("assertVisibleTextAfterNavigation::err:", err, "#")
|
| 368 |
+
throw err
|
| 369 |
+
}
|
| 370 |
} else {
|
| 371 |
try {
|
| 372 |
await expect(page.locator(idElementContentEditable)).toHaveScreenshot()
|