|
| 1 | +kushal@fedora:~/src/dotnet/MyBlog$ export PLAYWRIGHT_HEADLESS=false; export MYBLOG_BASE_URL=http://localhost:51227; cd /home/kushal/src/dotnet/MyBlog/src/MyBlog.E2E; dotnet run |
| 2 | +xUnit.net v3 In-Process Runner v3.2.2+728c1dce01 (64-bit .NET 10.0.2) |
| 3 | + Discovering: MyBlog.E2E |
| 4 | + Discovered: MyBlog.E2E |
| 5 | + Starting: MyBlog.E2E |
| 6 | + MyBlog.E2E.Tests.LoginPageTests.LoginPage_AfterLogin_ShowsLogoutButton [FAIL] |
| 7 | + Microsoft.Playwright.PlaywrightException : Locator expected to be visible |
| 8 | + SyntaxError: Invalid flags supplied to RegExp constructor 'logout'], form[action*='logout']' |
| 9 | + at new RegExp (<anonymous>) |
| 10 | + at createTextMatcher (<anonymous>:7912:16) |
| 11 | + at Object.queryAll (<anonymous>:6816:33) |
| 12 | + at InjectedScript._queryEngineAll (<anonymous>:6789:49) |
| 13 | + at InjectedScript.querySelectorAll (<anonymous>:6776:30) |
| 14 | + at eval (eval at evaluate (:290:30), <anonymous>:2:42) |
| 15 | + at UtilityScript.evaluate (<anonymous>:292:16) |
| 16 | + at UtilityScript.<anonymous> (<anonymous>:1:44) |
| 17 | + Call log: |
| 18 | + - Expect "ToBeVisibleAsync" with timeout 5000ms |
| 19 | + - waiting for Locator("text=/logout/i, text=/sign out/i, button:has-text('Logout'), [href='/logout'], form[action*='logout']").First |
| 20 | + Stack Trace: |
| 21 | + /_/src/Playwright/Core/AssertionsBase.cs(90,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, FrameExpectOptions expectOptions, Object expected, String message, String title) |
| 22 | + /_/src/Playwright/Core/AssertionsBase.cs(66,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, ExpectedTextValue[] expectedText, Object expected, String message, String title, FrameExpectOptions options) |
| 23 | + Tests/LoginPageTests.cs(102,0): at MyBlog.E2E.Tests.LoginPageTests.LoginPage_AfterLogin_ShowsLogoutButton() |
| 24 | + --- End of stack trace from previous location --- |
| 25 | + MyBlog.E2E.Tests.LoginPageTests.LoginPage_AfterLogin_ShowsLogoutButton_Updated_by_Qwen [FAIL] |
| 26 | + Microsoft.Playwright.PlaywrightException : Locator expected to be visible |
| 27 | + SyntaxError: Invalid flags supplied to RegExp constructor 'logout'], form[action*='logout']' |
| 28 | + at new RegExp (<anonymous>) |
| 29 | + at createTextMatcher (<anonymous>:7912:16) |
| 30 | + at Object.queryAll (<anonymous>:6816:33) |
| 31 | + at InjectedScript._queryEngineAll (<anonymous>:6789:49) |
| 32 | + at InjectedScript.querySelectorAll (<anonymous>:6776:30) |
| 33 | + at eval (eval at evaluate (:290:30), <anonymous>:2:42) |
| 34 | + at UtilityScript.evaluate (<anonymous>:292:16) |
| 35 | + at UtilityScript.<anonymous> (<anonymous>:1:44) |
| 36 | + Call log: |
| 37 | + - Expect "ToBeVisibleAsync" with timeout 5000ms |
| 38 | + - waiting for Locator("text=/logout/i, text=/sign out/i, button:has-text('Logout'), [href='/logout'], form[action*='logout']").First |
| 39 | + Stack Trace: |
| 40 | + /_/src/Playwright/Core/AssertionsBase.cs(90,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, FrameExpectOptions expectOptions, Object expected, String message, String title) |
| 41 | + /_/src/Playwright/Core/AssertionsBase.cs(66,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, ExpectedTextValue[] expectedText, Object expected, String message, String title, FrameExpectOptions options) |
| 42 | + Tests/LoginPageTests.cs(136,0): at MyBlog.E2E.Tests.LoginPageTests.LoginPage_AfterLogin_ShowsLogoutButton_Updated_by_Qwen() |
| 43 | + --- End of stack trace from previous location --- |
| 44 | + Finished: MyBlog.E2E (ID = '4da13f9d563b191d498eddd21e3e1a69685c77da9d3c1623ac434c46a99ec86c') |
| 45 | +=== TEST EXECUTION SUMMARY === |
| 46 | + MyBlog.E2E Total: 19, Errors: 0, Failed: 2, Skipped: 0, Not Run: 0, Time: 11.191s |
| 47 | +kushal@fedora:~/src/dotnet/MyBlog/src/MyBlog.E2E$ export PLAYWRIGHT_HEADLESS=false; export MYBLOG_BASE_URL=http://localhost:51227; cd /home/kushal/src/dotnet/MyBlog/src/MyBlog.E2E; dotnet run |
| 48 | +xUnit.net v3 In-Process Runner v3.2.2+728c1dce01 (64-bit .NET 10.0.2) |
| 49 | + Discovering: MyBlog.E2E |
| 50 | + Discovered: MyBlog.E2E |
| 51 | + Starting: MyBlog.E2E |
| 52 | + Finished: MyBlog.E2E (ID = '4da13f9d563b191d498eddd21e3e1a69685c77da9d3c1623ac434c46a99ec86c') |
| 53 | +=== TEST EXECUTION SUMMARY === |
| 54 | + MyBlog.E2E Total: 18, Errors: 0, Failed: 0, Skipped: 0, Not Run: 0, Time: 12.716s |
| 55 | +kushal@fedora:~/src/dotnet/MyBlog/src/MyBlog.E2E$ export PLAYWRIGHT_HEADLESS=false; export MYBLOG_BASE_URL=http://localhost:51227; cd /home/kushal/src/dotnet/MyBlog/src/MyBlog.E2E; dotnet run |
| 56 | +xUnit.net v3 In-Process Runner v3.2.2+728c1dce01 (64-bit .NET 10.0.2) |
| 57 | + Discovering: MyBlog.E2E |
| 58 | + Discovered: MyBlog.E2E |
| 59 | + Starting: MyBlog.E2E |
| 60 | + Finished: MyBlog.E2E (ID = '4da13f9d563b191d498eddd21e3e1a69685c77da9d3c1623ac434c46a99ec86c') |
| 61 | +=== TEST EXECUTION SUMMARY === |
| 62 | + MyBlog.E2E Total: 18, Errors: 0, Failed: 0, Skipped: 0, Not Run: 0, Time: 37.564s |
| 63 | +kushal@fedora:~/src/dotnet/MyBlog/src/MyBlog.E2E$ export PLAYWRIGHT_HEADLESS=false; export MYBLOG_BASE_URL=http://localhost:51227; cd /home/kushal/src/dotnet/MyBlog/src/MyBlog.E2E; time dotnet run; export PLAYWRIGHT_HEADLESS=true; export MYBLOG_BASE_URL=http://localhost:51227; cd /home/kushal/src/dotnet/MyBlog/src/MyBlog.E2E; time dotnet run; |
| 64 | +xUnit.net v3 In-Process Runner v3.2.2+728c1dce01 (64-bit .NET 10.0.2) |
| 65 | + Discovering: MyBlog.E2E |
| 66 | + Discovered: MyBlog.E2E |
| 67 | + Starting: MyBlog.E2E |
| 68 | + MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithValidCredentials_RedirectsToAdmin [FAIL] |
| 69 | + System.TimeoutException : Timeout 30000ms exceeded. |
| 70 | + Call log: |
| 71 | + - waiting for Locator("button[type='submit']") |
| 72 | + - locator resolved to <button type="submit" b-9i1dxi8u9e="" class="btn btn-primary">Login</button> |
| 73 | + - attempting click action |
| 74 | + - waiting for element to be visible, enabled and stable |
| 75 | + - element is visible, enabled and stable |
| 76 | + - scrolling into view if needed |
| 77 | + - done scrolling |
| 78 | + - performing click action |
| 79 | + - click action done |
| 80 | + - waiting for scheduled navigations to finish |
| 81 | + Stack Trace: |
| 82 | + /_/src/Playwright/Transport/Connection.cs(201,0): at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](ChannelOwner object, String method, Dictionary`2 dictionary, Boolean keepNulls) |
| 83 | + /_/src/Playwright/Transport/Connection.cs(499,0): at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal, String title) |
| 84 | + Tests/LoginPageTests.cs(61,0): at MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithValidCredentials_RedirectsToAdmin() |
| 85 | + --- End of stack trace from previous location --- |
| 86 | + MyBlog.E2E.Tests.LoginPageTests.LoginPage_AfterLogin_ShowsLogoutButton [FAIL] |
| 87 | + System.TimeoutException : Timeout 30000ms exceeded. |
| 88 | + Call log: |
| 89 | + - waiting for Locator("button[type='submit']") |
| 90 | + - locator resolved to <button type="submit" b-9i1dxi8u9e="" class="btn btn-primary">Login</button> |
| 91 | + - attempting click action |
| 92 | + - waiting for element to be visible, enabled and stable |
| 93 | + - element is visible, enabled and stable |
| 94 | + - scrolling into view if needed |
| 95 | + - done scrolling |
| 96 | + - performing click action |
| 97 | + - click action done |
| 98 | + - waiting for scheduled navigations to finish |
| 99 | + Stack Trace: |
| 100 | + /_/src/Playwright/Transport/Connection.cs(201,0): at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](ChannelOwner object, String method, Dictionary`2 dictionary, Boolean keepNulls) |
| 101 | + /_/src/Playwright/Transport/Connection.cs(499,0): at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal, String title) |
| 102 | + Tests/LoginPageTests.cs(78,0): at MyBlog.E2E.Tests.LoginPageTests.LoginPage_AfterLogin_ShowsLogoutButton() |
| 103 | + --- End of stack trace from previous location --- |
| 104 | + MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithInvalidCredentials_ShowsError [FAIL] |
| 105 | + System.TimeoutException : Timeout 30000ms exceeded. |
| 106 | + Call log: |
| 107 | + - waiting for Locator("button[type='submit']") |
| 108 | + - locator resolved to <button type="submit" b-9i1dxi8u9e="" class="btn btn-primary">Login</button> |
| 109 | + - attempting click action |
| 110 | + - waiting for element to be visible, enabled and stable |
| 111 | + - element is visible, enabled and stable |
| 112 | + - scrolling into view if needed |
| 113 | + - done scrolling |
| 114 | + - performing click action |
| 115 | + - click action done |
| 116 | + - waiting for scheduled navigations to finish |
| 117 | + Stack Trace: |
| 118 | + /_/src/Playwright/Transport/Connection.cs(201,0): at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](ChannelOwner object, String method, Dictionary`2 dictionary, Boolean keepNulls) |
| 119 | + /_/src/Playwright/Transport/Connection.cs(499,0): at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal, String title) |
| 120 | + Tests/LoginPageTests.cs(43,0): at MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithInvalidCredentials_ShowsError() |
| 121 | + --- End of stack trace from previous location --- |
| 122 | + Finished: MyBlog.E2E (ID = '4da13f9d563b191d498eddd21e3e1a69685c77da9d3c1623ac434c46a99ec86c') |
| 123 | +=== TEST EXECUTION SUMMARY === |
| 124 | + MyBlog.E2E Total: 18, Errors: 0, Failed: 3, Skipped: 0, Not Run: 0, Time: 99.412s |
| 125 | + |
| 126 | +real 1m41.236s |
| 127 | +user 0m11.105s |
| 128 | +sys 0m3.691s |
| 129 | +xUnit.net v3 In-Process Runner v3.2.2+728c1dce01 (64-bit .NET 10.0.2) |
| 130 | + Discovering: MyBlog.E2E |
| 131 | + Discovered: MyBlog.E2E |
| 132 | + Starting: MyBlog.E2E |
| 133 | + MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithValidCredentials_RedirectsToAdmin [FAIL] |
| 134 | + Microsoft.Playwright.PlaywrightException : Page URL expected to match regex '/admin' |
| 135 | + But was: 'http://localhost:51227/login' |
| 136 | + Call log: |
| 137 | + - Expect "ToHaveURLAsync" with timeout 5000ms |
| 138 | + 9 × unexpected value "http://localhost:51227/login" |
| 139 | + Stack Trace: |
| 140 | + /_/src/Playwright/Core/AssertionsBase.cs(92,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, FrameExpectOptions expectOptions, Object expected, String message, String title) |
| 141 | + /_/src/Playwright/Core/AssertionsBase.cs(66,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, ExpectedTextValue[] expectedText, Object expected, String message, String title, FrameExpectOptions options) |
| 142 | + /_/src/Playwright/Core/AssertionsBase.cs(58,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, ExpectedTextValue textValue, Object expected, String message, String title, FrameExpectOptions options) |
| 143 | + Tests/LoginPageTests.cs(66,0): at MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithValidCredentials_RedirectsToAdmin() |
| 144 | + --- End of stack trace from previous location --- |
| 145 | + MyBlog.E2E.Tests.LoginPageTests.LoginPage_AfterLogin_ShowsLogoutButton [FAIL] |
| 146 | + Microsoft.Playwright.PlaywrightException : Page URL expected to match regex '/admin' |
| 147 | + But was: 'http://localhost:51227/login' |
| 148 | + Call log: |
| 149 | + - Expect "ToHaveURLAsync" with timeout 5000ms |
| 150 | + 9 × unexpected value "http://localhost:51227/login" |
| 151 | + Stack Trace: |
| 152 | + /_/src/Playwright/Core/AssertionsBase.cs(92,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, FrameExpectOptions expectOptions, Object expected, String message, String title) |
| 153 | + /_/src/Playwright/Core/AssertionsBase.cs(66,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, ExpectedTextValue[] expectedText, Object expected, String message, String title, FrameExpectOptions options) |
| 154 | + /_/src/Playwright/Core/AssertionsBase.cs(58,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, ExpectedTextValue textValue, Object expected, String message, String title, FrameExpectOptions options) |
| 155 | + Tests/LoginPageTests.cs(82,0): at MyBlog.E2E.Tests.LoginPageTests.LoginPage_AfterLogin_ShowsLogoutButton() |
| 156 | + --- End of stack trace from previous location --- |
| 157 | + MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithInvalidCredentials_ShowsError [FAIL] |
| 158 | + Microsoft.Playwright.PlaywrightException : Locator expected to be visible |
| 159 | + Error: element(s) not found |
| 160 | + Call log: |
| 161 | + - Expect "ToBeVisibleAsync" with timeout 5000ms |
| 162 | + - waiting for Locator(".error-message") |
| 163 | + Stack Trace: |
| 164 | + /_/src/Playwright/Core/AssertionsBase.cs(90,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, FrameExpectOptions expectOptions, Object expected, String message, String title) |
| 165 | + /_/src/Playwright/Core/AssertionsBase.cs(66,0): at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, ExpectedTextValue[] expectedText, Object expected, String message, String title, FrameExpectOptions options) |
| 166 | + Tests/LoginPageTests.cs(48,0): at MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithInvalidCredentials_ShowsError() |
| 167 | + --- End of stack trace from previous location --- |
| 168 | + Finished: MyBlog.E2E (ID = '4da13f9d563b191d498eddd21e3e1a69685c77da9d3c1623ac434c46a99ec86c') |
| 169 | +=== TEST EXECUTION SUMMARY === |
| 170 | + MyBlog.E2E Total: 18, Errors: 0, Failed: 3, Skipped: 0, Not Run: 0, Time: 21.154s |
| 171 | + |
| 172 | +real 0m23.135s |
| 173 | +user 0m4.780s |
| 174 | +sys 0m0.968s |
| 175 | +kushal@fedora:~/src/dotnet/MyBlog/src/MyBlog.E2E$ export PLAYWRIGHT_HEADLESS=false; export MYBLOG_BASE_URL=http://localhost:51227; cd /home/kushal/src/dotnet/MyBlog/src/MyBlog.E2E; dotnet run |
| 176 | +xUnit.net v3 In-Process Runner v3.2.2+728c1dce01 (64-bit .NET 10.0.2) |
| 177 | + Discovering: MyBlog.E2E |
| 178 | + Discovered: MyBlog.E2E |
| 179 | + Starting: MyBlog.E2E |
| 180 | + MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithValidCredentials_RedirectsToAdmin [FAIL] |
| 181 | + System.TimeoutException : Timeout 30000ms exceeded. |
| 182 | + Call log: |
| 183 | + - waiting for Locator("button[type='submit']") |
| 184 | + - locator resolved to <button type="submit" b-9i1dxi8u9e="" class="btn btn-primary">Login</button> |
| 185 | + - attempting click action |
| 186 | + - waiting for element to be visible, enabled and stable |
| 187 | + - element is visible, enabled and stable |
| 188 | + - scrolling into view if needed |
| 189 | + - done scrolling |
| 190 | + - performing click action |
| 191 | + - click action done |
| 192 | + - waiting for scheduled navigations to finish |
| 193 | + Stack Trace: |
| 194 | + /_/src/Playwright/Transport/Connection.cs(201,0): at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](ChannelOwner object, String method, Dictionary`2 dictionary, Boolean keepNulls) |
| 195 | + /_/src/Playwright/Transport/Connection.cs(499,0): at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal, String title) |
| 196 | + Tests/LoginPageTests.cs(61,0): at MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithValidCredentials_RedirectsToAdmin() |
| 197 | + --- End of stack trace from previous location --- |
| 198 | + MyBlog.E2E.Tests.LoginPageTests.LoginPage_AfterLogin_ShowsLogoutButton [FAIL] |
| 199 | + System.TimeoutException : Timeout 30000ms exceeded. |
| 200 | + Call log: |
| 201 | + - waiting for Locator("button[type='submit']") |
| 202 | + - locator resolved to <button type="submit" b-9i1dxi8u9e="" class="btn btn-primary">Login</button> |
| 203 | + - attempting click action |
| 204 | + - waiting for element to be visible, enabled and stable |
| 205 | + - element is visible, enabled and stable |
| 206 | + - scrolling into view if needed |
| 207 | + - done scrolling |
| 208 | + - performing click action |
| 209 | + - click action done |
| 210 | + - waiting for scheduled navigations to finish |
| 211 | + Stack Trace: |
| 212 | + /_/src/Playwright/Transport/Connection.cs(201,0): at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](ChannelOwner object, String method, Dictionary`2 dictionary, Boolean keepNulls) |
| 213 | + /_/src/Playwright/Transport/Connection.cs(499,0): at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal, String title) |
| 214 | + Tests/LoginPageTests.cs(78,0): at MyBlog.E2E.Tests.LoginPageTests.LoginPage_AfterLogin_ShowsLogoutButton() |
| 215 | + --- End of stack trace from previous location --- |
| 216 | + MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithInvalidCredentials_ShowsError [FAIL] |
| 217 | + System.TimeoutException : Timeout 30000ms exceeded. |
| 218 | + Call log: |
| 219 | + - waiting for Locator("button[type='submit']") |
| 220 | + - locator resolved to <button type="submit" b-9i1dxi8u9e="" class="btn btn-primary">Login</button> |
| 221 | + - attempting click action |
| 222 | + - waiting for element to be visible, enabled and stable |
| 223 | + - element is visible, enabled and stable |
| 224 | + - scrolling into view if needed |
| 225 | + - done scrolling |
| 226 | + - performing click action |
| 227 | + - click action done |
| 228 | + - waiting for scheduled navigations to finish |
| 229 | + Stack Trace: |
| 230 | + /_/src/Playwright/Transport/Connection.cs(201,0): at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](ChannelOwner object, String method, Dictionary`2 dictionary, Boolean keepNulls) |
| 231 | + /_/src/Playwright/Transport/Connection.cs(499,0): at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal, String title) |
| 232 | + Tests/LoginPageTests.cs(43,0): at MyBlog.E2E.Tests.LoginPageTests.LoginPage_WithInvalidCredentials_ShowsError() |
| 233 | + --- End of stack trace from previous location --- |
| 234 | + Finished: MyBlog.E2E (ID = '4da13f9d563b191d498eddd21e3e1a69685c77da9d3c1623ac434c46a99ec86c') |
| 235 | +=== TEST EXECUTION SUMMARY === |
| 236 | + MyBlog.E2E Total: 18, Errors: 0, Failed: 3, Skipped: 0, Not Run: 0, Time: 99.297s |
| 237 | +kushal@fedora:~/src/dotnet/MyBlog/src/MyBlog.E2E$ |
0 commit comments