From da33c89acfd9f0693dff7daf508587ca3d4d0717 Mon Sep 17 00:00:00 2001 From: Jacob Mischka Date: Mon, 5 Jun 2023 12:52:21 -0500 Subject: [PATCH] Fix python test for select.table I guess `.last()` doesn't work in python playwright? --- src/tests/test_main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/test_main.py b/src/tests/test_main.py index 0502aed..e4fefa4 100644 --- a/src/tests/test_main.py +++ b/src/tests/test_main.py @@ -950,9 +950,9 @@ class Row(TypedDict): ) ) - await page.locator('[role="cell"]:has-text("Jacob")').last().click() - await page.locator('[role="cell"]:has-text("Alex")').last().click() - await page.locator('[role="cell"]:has-text("Dan")').last().click() + await page.locator('[role="cell"]:has-text("Jacob")').nth(1).click() + await page.locator('[role="cell"]:has-text("Alex")').nth(1).click() + await page.locator('[role="cell"]:has-text("Dan")').nth(1).click() await transactions.press_continue() await transactions.expect_success(firstName="Dan", lastName="Philibin")