Skip to content

Commit 8f0a96e

Browse files
Simão sáSimão sá
authored andcommitted
fix experiment selectors
1 parent 60cc73f commit 8f0a96e

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

tests/frontend/e2e/tests/ExperimentManager_Tut#1.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ describe('Experiment Manager test using Tut#1', () => {
208208
await click(page, selectors.SIMULATE_NETWORK_SELECTOR, { timeout: TIMEOUT });
209209

210210
console.log('Simulating all conditions')
211-
211+
await page.waitForSelector(selectors.SIMULATE_POPUP_SELECTOR)
212+
await page.click(selectors.SIMULATE_POPUP_SELECTOR)
212213
await page.waitForSelector(selectors.CONFIRM_SIMULATE_SELECTOR)
213214
await page.click(selectors.CONFIRM_SIMULATE_SELECTOR)
214215

tests/frontend/e2e/tests/selectors.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,13 @@ export const TO_VALUE_SELECTOR = '#undefined-to'
5757
export const STEP_VALUE_SELECTOR = '#undefined-step'
5858
export const CREATE_EXPERIMENT_BUTTON_SELECTOR = 'button[class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary"]'
5959
export const EXPERIMENT_TABLE_HEADER_SELECTOR = 'th[class="MuiTableCell-root MuiTableCell-body"]'
60-
export const SIMULATE_POPUP_SELECTOR = 'div[class="MuiBox-root MuiBox-root-185 wrap"]'
60+
// export const SIMULATE_POPUP_SELECTOR = 'div[class="MuiBox-root MuiBox-root-185 wrap"]'
61+
export const SIMULATE_POPUP_SELECTOR = '.MuiDialogContent-root > .MuiBox-root.custom-radio > :nth-child(2) > div'
62+
6163
export const CONFIRM_SIMULATE_SELECTOR = '#appBarPerformActionButton'
6264
export const CONFIRM_EXPERIMENT_STARTED_SELECTOR = 'button[class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary"]'
63-
export const SIMULATION_LOADER_SELECTOR = 'div[class = "MuiBox-root MuiBox-root-186 MuiChip-icon MuiChipLoader"]'
65+
// export const SIMULATION_LOADER_SELECTOR = 'div[class = "MuiBox-root MuiBox-root-186 MuiChip-icon MuiChipLoader"]'
66+
export const SIMULATION_LOADER_SELECTOR = '.MuiTableCell-root.MuiTableCell-body.experimentTableCell.MuiTableCell-alignLeft > div > .MuiChipLoader '
6467
export const BACK_TO_EDIT_SELECTOR = 'span[class="MuiButton-startIcon MuiButton-iconSizeMedium"]'
6568
export const CELL_TYPES_TAB_SELECTOR = 'div[title="Cell Types"]'
6669
export const EXPERIMENT_TABLE_SELECTOR = 'table[class="MuiTable-root"]'

0 commit comments

Comments
 (0)