Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: migrate some helpers to fixtures, use testOutputDir #3926

Merged
merged 1 commit into from
Sep 18, 2020
Merged

test: migrate some helpers to fixtures, use testOutputDir #3926

merged 1 commit into from
Sep 18, 2020

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Sep 18, 2020

  • Save various test artifacts to testOutputDir instead of tmpDir.
    For example, download tests put downloaded files to
    test-results/download/should_work/download.txt that can be
    examined after test run.

  • Make expectedSSLError a fixture that depends on platform and browserName.

  • Turn {make,remove}UserDataDir into createUserDataDir fixture.

  • Move attachFrame, detachFrame and verifyViewport helpers.

  • Remove registerEngine helper because worker isolation solves it.

  • Remove test/utils.js.

- Save various test artifacts to testOutputDir instead of tmpDir.
  For example, download tests put downloaded files to
  `test-results/download/should_work/download.txt` and could be
  examined after test run.

- Make `expectedSSLError` a fixture that depends on platform and browserName.

- Turn `{make,remove}UserDataDir` into `createUserDataDir` fixture.

- Move `attachFrame`, `detachFrame` and `verifyViewport` helpers.

- Remove `registerEngine` helper because worker isolation solves it.

- Remove `test/utils.js`.
@pavelfeldman pavelfeldman merged commit 4e2d75d into microsoft:master Sep 18, 2020
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.

2 participants