Merge release/2.1.3 into master (#6015)
* Bump version to `2.1.3` (#5973) * Preserve Gauge configuration changes on create/edit (#5986) * fix(#5985): deep merge on create/edit properties - Perform a deep merge of old and new properties on Create/Edit properties actions * refactor(e2e): improve selector in appActions * test(e2e): add tests for gauges - test creating a non-default gauge (checks only for console errors) - test updating a gauge (checks only for console errors) * fix(e2e): use pluginFixtures for gauge tests * fix(e2e): prevent fail if testNotes is undefined * Make the tree key unique (#5989) Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
This commit is contained in:
@@ -72,17 +72,19 @@ async function createDomainObjectWithDefaults(page, { type, name, parent = 'mine
|
||||
await page.click('button:has-text("Create")');
|
||||
|
||||
// Click the object specified by 'type'
|
||||
await page.click(`li:text("${type}")`);
|
||||
await page.click(`li[role='menuitem']:text("${type}")`);
|
||||
|
||||
// Modify the name input field of the domain object to accept 'name'
|
||||
const nameInput = page.locator('form[name="mctForm"] .first input[type="text"]');
|
||||
await nameInput.fill("");
|
||||
await nameInput.fill(name);
|
||||
|
||||
// Fill the "Notes" section with information about the
|
||||
// currently running test and its project.
|
||||
const notesInput = page.locator('form[name="mctForm"] #notes-textarea');
|
||||
await notesInput.fill(page.testNotes);
|
||||
if (page.testNotes) {
|
||||
// Fill the "Notes" section with information about the
|
||||
// currently running test and its project.
|
||||
const notesInput = page.locator('form[name="mctForm"] #notes-textarea');
|
||||
await notesInput.fill(page.testNotes);
|
||||
}
|
||||
|
||||
// Click OK button and wait for Navigate event
|
||||
await Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user