Skip to content

Commit

Permalink
jupyterlab cut button label depends on version
Browse files Browse the repository at this point in the history
  • Loading branch information
manics authored Feb 9, 2024
1 parent 53718fc commit 127623b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_offlinenotebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ def test_offline_lab(self, tmpdir):
for n in range(EXPECTED_NUM_CELLS):
self.wait.until(
EC.element_to_be_clickable(
(By.XPATH, "//button[@title='Cut the selected cells (X)']")
# May end with ' (X)'
(By.XPATH, "//button[starts-with(@title, 'Cut the selected cells')]")
)
).click()
size, ncells = self.download_visible()
Expand Down

0 comments on commit 127623b

Please sign in to comment.