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: Diff scene e2e tests #1073

Merged
merged 6 commits into from
May 9, 2022
Merged

test: Diff scene e2e tests #1073

merged 6 commits into from
May 9, 2022

Conversation

fabio-looker
Copy link
Contributor

Adds the following requested e2e tests:

  • Diff Scene:
    • loads the default scene (/diff/3.1)
      • "Base" input element (defaulting to 3.1)
      • "Comparison" input element
      • Switch button (disabled)
    • loads a comparison scene (/diff/3.1/4.0) and navigates from it
      • "Base" input element (set to 3.1)
      • "Comparison" input element (set to 4.0)
      • Switch button (enabled)
      • Diff results (present and containing an expected value)
      • Expanding a result
      • Navigating from a method result and validating the destination
    • updates when a comparison is chosen or switched
  • Default/methods scene
    • Navigate to an APIX endpoint with examples (e.g. all_dashboards), click on one of the examples, which should open GitHub and show code that includes the operation ID (all_dashboards)

Additoinally, three previous e2e tests were failing (partially due to out of date tests from before 4.0 GA release). Two of them have been fixed, and one which was proving cumbersome has been commented out for the time being.

@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2022

APIX Tests

    1 files    78 suites   3m 41s ⏱️
313 tests 300 ✔️ 13 💤 0 ❌
329 runs  316 ✔️ 13 💤 0 ❌

Results for commit ca67b9d.

Copy link
Contributor

@josephaxisa josephaxisa left a comment

Choose a reason for hiding this comment

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

lgtm, just have one question before approving

// text: 'Looker API 4.0 Reference',
// })
// await expect(page).toClick('input[value="4.0"]')
// await Promise.all([
Copy link
Contributor

Choose a reason for hiding this comment

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

is this intentionally commented out? if yes, do we have a ticket to track its fix?

Copy link
Contributor Author

@fabio-looker fabio-looker May 6, 2022

Choose a reason for hiding this comment

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

Yes, it was broken when I merged main back in, along with two others that I was able to fix.

I just created this issue: b/231742409

@josephaxisa josephaxisa self-requested a review May 6, 2022 20:43
@fabio-looker fabio-looker merged commit 9ed6ecd into main May 9, 2022
@fabio-looker fabio-looker deleted the fabble/diff-scene-e2e-tests branch May 9, 2022 14:46
@github-actions

This comment has been minimized.

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