Skip to content

Commit

Permalink
Fix "Copy to space" functional test
Browse files Browse the repository at this point in the history
Could not figure out why this broke, I did not change this flyout.
At any rate, clicking a different part of the radio button fixed
it.
  • Loading branch information
jportner committed Sep 30, 2020
1 parent 31b1909 commit 473dc7d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export function CopySavedObjectsToSpacePageProvider({
if (!overwrite) {
const radio = await testSubjects.find('cts-copyModeControl-overwriteRadioGroup');
// a radio button consists of a div tag that contains an input, a div, and a label
// we can't click the input directly, need to go up one level and click the parent div
const div = await radio.findByXpath("//div[input[@id='overwriteDisabled']]");
await div.click();
// we can't click the input directly, need to click the label
const label = await radio.findByCssSelector('label[for="overwriteDisabled"]');
await label.click();
}
await testSubjects.click(`cts-space-selector-row-${destinationSpaceId}`);
},
Expand Down

0 comments on commit 473dc7d

Please sign in to comment.