Skip to content

Conversation

@schloerke
Copy link
Collaborator

Related: #1197

cc @karangattu

@karangattu
Copy link
Collaborator

Can you make the change also to use 1920 x 1080 resolution for the viewport before each test?

@pytest.fixture(scope="function")
# By going to `about:blank`, we _reset_ the page to a known state before each test.
# It is not perfect, but it is faster than making a new page for each test.
# This must be done before each test
def page(session_page: Page) -> Page:
    session_page.goto("about:blank")
    session_page.set_viewport_size({"width": 1920, "height": 1080})
    return session_page

in conftest.py

Copy link
Collaborator

@karangattu karangattu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@schloerke schloerke merged commit aba83ed into main Mar 8, 2024
@schloerke schloerke deleted the testing_followup branch March 8, 2024 15:30
schloerke added a commit that referenced this pull request Mar 15, 2024
* main:
  Add support for Shiny Express in Quarto Dashboards, take 2 (#1217)
  Force UTF-8 for Shiny Express on Windows (#1203)
  Typing fixes
  feat(card): Report full screen state as a Shiny input (#1215)
  Use TypeScript strict mode (#1208)
  Update author email
  test: Resolve testing comments (#1206)
  Fix URL
  Update badges
  Bump dev version to 0.8.1.9000 (#1202)
  chore(deps): Update bslib css (#1200)
  chore: no new features
  v0.8.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants