test(playwright): fix stale selectors after UI refactor (h1 headings, collapsed Topology/Audit disclosures, ParameterValueForm ids, method-select race)
This commit is contained in:
+2
-2
@@ -37,7 +37,7 @@ public class SharedScriptCrudTests
|
||||
var page = await _pw.NewAuthenticatedPageAsync();
|
||||
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}/design/shared-scripts");
|
||||
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
|
||||
await Assertions.Expect(page.Locator("h4:has-text('Shared Scripts')")).ToBeVisibleAsync();
|
||||
await Assertions.Expect(page.Locator("h1:has-text('Shared Scripts')")).ToBeVisibleAsync();
|
||||
|
||||
// Narrow the list so the card locator stays unambiguous even with many scripts.
|
||||
await page.Locator("input[placeholder='Filter by name or code…']").FillAsync(name);
|
||||
@@ -85,7 +85,7 @@ public class SharedScriptCrudTests
|
||||
|
||||
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}/design/shared-scripts/create");
|
||||
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
|
||||
await Assertions.Expect(page.Locator("h4:has-text('New Shared Script')")).ToBeVisibleAsync();
|
||||
await Assertions.Expect(page.Locator("h1:has-text('New Shared Script')")).ToBeVisibleAsync();
|
||||
|
||||
var nameInput = page.Locator("input[type=text].form-control.form-control-sm");
|
||||
await Assertions.Expect(nameInput).ToBeVisibleAsync();
|
||||
|
||||
Reference in New Issue
Block a user