Closed landhu closed 7 months ago
import re from playwright.sync_api import Page, expect import pytest
@pytest.mark.parametrize("fov_value", ['65', '90', '110'], scope='function') def test_has_title(fov_value, page: Page): page.goto("https://playwright.dev/") expect(page).to_have_title(re.compile("Playwright"))
@pytest.mark.parametrize("fov_value", ['65', '90', '110'], scope='function') def test_get_started_link(fov_value, page: Page): page.goto("https://playwright.dev/") page.get_by_role("link", name="Get started").click() expect(page.get_by_role("heading", name="Installation")).to_be_visible()
Steps
Expected Sort by function like: test_has_title[chromium-65] test_has_title[chromium-90] test_has_title[chromium-110] test_get_started_link[chromium-65] test_get_started_link[chromium-90]
Actual
[Describe actual behavior]
Folding into https://github.com/microsoft/playwright-pytest/issues/195
System info
Source code
import re from playwright.sync_api import Page, expect import pytest
@pytest.mark.parametrize("fov_value", ['65', '90', '110'], scope='function') def test_has_title(fov_value, page: Page): page.goto("https://playwright.dev/") expect(page).to_have_title(re.compile("Playwright"))
@pytest.mark.parametrize("fov_value", ['65', '90', '110'], scope='function') def test_get_started_link(fov_value, page: Page): page.goto("https://playwright.dev/") page.get_by_role("link", name="Get started").click() expect(page.get_by_role("heading", name="Installation")).to_be_visible()
Steps
Expected Sort by function like: test_has_title[chromium-65] test_has_title[chromium-90] test_has_title[chromium-110] test_get_started_link[chromium-65] test_get_started_link[chromium-90]
Actual
[Describe actual behavior]