|
15 | 15 | //<http: //www.gnu.org/licenses />. |
16 | 16 | using AudioCuesheetEditor.End2EndTests.Models; |
17 | 17 | using Microsoft.Playwright; |
| 18 | +using Microsoft.VisualStudio.TestPlatform.ObjectModel; |
18 | 19 |
|
19 | 20 | namespace AudioCuesheetEditor.End2EndTests.Tests.Desktop |
20 | 21 | { |
@@ -211,7 +212,7 @@ await Expect(TestPage.GetByRole(AriaRole.Table)).ToMatchAriaSnapshotAsync(@"- ta |
211 | 212 | - button |
212 | 213 | - rowgroup: |
213 | 214 | - row"); |
214 | | - await Expect(TestPage.GetByRole(AriaRole.Textbox, new() { Name = "Audiofile" })).ToHaveValueAsync(@"c:\AudioFile.mp3"); |
| 215 | + await Expect(TestPage.GetByRole(AriaRole.Group).Filter(new() { HasText = "c:\\AudioFile.mp3" })).ToMatchAriaSnapshotAsync("- group:\r\n - checkbox\r\n - heading \"c:\\\\AudioFile.mp3\" [level=6]\r\n - button \"Upload file\"\r\n - button \"Rename file\"\r\n - button \"Clear file\""); |
215 | 216 | await importView.GotoAsync(); |
216 | 217 | await Expect(TestPage.GetByRole(AriaRole.Button, new() { Name = "Analyze" })).ToBeVisibleAsync(); |
217 | 218 | } |
@@ -2431,7 +2432,7 @@ await Expect(TestPage.GetByRole(AriaRole.Table)).ToMatchAriaSnapshotAsync(@"- ta |
2431 | 2432 | - rowgroup: |
2432 | 2433 | - row"); |
2433 | 2434 | await appBar.UndoAsync(); |
2434 | | - await Expect(TestPage.GetByRole(AriaRole.Paragraph).Filter(new() { HasText = "Audiofiles has invalid Count (0)!" })).ToBeVisibleAsync(); |
| 2435 | + await Expect(TestPage.GetByRole(AriaRole.Tabpanel, new() { Name = "Detail view" })).ToMatchAriaSnapshotAsync("- text: Audiofiles has invalid count (0)!"); |
2435 | 2436 | } |
2436 | 2437 |
|
2437 | 2438 | [TestMethod] |
@@ -2626,7 +2627,7 @@ await Expect(TestPage.GetByRole(AriaRole.Table)).ToMatchAriaSnapshotAsync(@"- ta |
2626 | 2627 | - rowgroup: |
2627 | 2628 | - row"); |
2628 | 2629 | await appBar.UndoAsync(); |
2629 | | - await Expect(TestPage.GetByRole(AriaRole.Paragraph).Filter(new() { HasText = "Audiofiles has invalid Count (0)!" })).ToBeVisibleAsync(); |
| 2630 | + await Expect(TestPage.GetByRole(AriaRole.Tabpanel, new() { Name = "Detail view" })).ToMatchAriaSnapshotAsync("- text: Audiofiles has invalid count (0)!"); |
2630 | 2631 | } |
2631 | 2632 |
|
2632 | 2633 | [TestMethod] |
|
0 commit comments