Skip to content

Commit a9d069b

Browse files
committed
code change in test
1 parent be41c11 commit a9d069b

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

test/src/org/labkey/test/tests/targetedms/TargetedMSQCTest.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,25 +1066,24 @@ private void verifyAddAnnotationsFromQCPlots()
10661066

10671067
// Hover over the add annotation button and verify tooltip
10681068
Locator addAnnotationButton = Locator.tagWithClass("path", "non-annotation");
1069+
scrollIntoView(addAnnotationButton);
10691070
mouseOver(addAnnotationButton);
1070-
waitForElement(Locator.tagWithText("title", "Add Annotation"));
10711071

10721072
// Click the add annotation button
10731073
click(addAnnotationButton);
1074-
1075-
// Wait for the annotation window to appear
1076-
_ext4Helper.waitForMaskToDisappear();
10771074
waitForElement(Locator.xpath("//div[contains(@class, 'x4-window')]//span[text()='Add Annotation']"));
10781075

1079-
// Select annotation type
1080-
_ext4Helper.selectComboBoxItem(Locator.xpath("//input[@name='annotationType']"), instrumentChange.getType());
1076+
// Select an annotation type
1077+
_ext4Helper.selectComboBoxItem(Ext4Helper.Locators.formItemWithInputNamed("annotationType"), Ext4Helper.TextMatchTechnique.CONTAINS, instrumentChange.getType());
10811078

10821079
// Enter comment
10831080
String testComment = "Test annotation from QC plot";
1084-
setFormElement(Locator.xpath("//textarea[@name='description']"), testComment);
1081+
setFormElement(Locator.name("comment"), testComment);
10851082

1086-
// Click save button
1083+
// Click the save button
10871084
clickButton("Save", 0);
1085+
waitForText("Annotation saved successfully");
1086+
clickButton("OK", 0);
10881087
_ext4Helper.waitForMaskToDisappear();
10891088

10901089
// Wait for the plots to refresh

0 commit comments

Comments
 (0)