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: ct audit updates #19464

Merged
merged 9 commits into from
Jan 7, 2022
Merged

Conversation

marktnoonan
Copy link
Contributor

@marktnoonan marktnoonan commented Dec 22, 2021

Closes: https://cypress-io.atlassian.net/browse/UNIFY-867

User facing changelog

Additional details

This PR adds a to prop to our button that works like our href prop - when used, it causes the button to render a Router Link. This allows us to avoid wrapping a the Button in a Router Link, which creates invalid mark up of a button element inside an a element.

This PR also adds a bit of testing to the NoSpecsPage, and adds ticket number to TODO comments. The tailwind class changes are just changing the order due to the files formatting automatically when saved.

How to test

Run NoSpecsPage.spec.tsx and validate the that markup around the View Spec pattern button is a link, not a link wrapping a button. Or remove/rename the specs in a project so that you get the same page in the App.

PR Tasks

  • Have tests been added/updated?
  • [na] Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • [na] Has a PR for user-facing changes been opened in cypress-documentation?
  • [na] Have API changes been updated in the type definitions?
  • [na] Have new configuration options been added to the cypress.schema.json?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Dec 22, 2021

Thanks for taking the time to open a PR!

@jennifer-shehane jennifer-shehane changed the title ct audit updates tests: ct audit updates Dec 22, 2021
@jennifer-shehane jennifer-shehane changed the title tests: ct audit updates test: ct audit updates Dec 22, 2021
@cypress
Copy link

cypress bot commented Dec 22, 2021



Test summary

18560 0 218 0Flakiness 1


Run details

Project cypress
Status Passed
Commit 78ad1f8
Started Jan 7, 2022 6:02 PM
Ended Jan 7, 2022 6:14 PM
Duration 11:52 💡
OS Linux Debian - 10.10
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

cypress/integration/cypress/proxy-logging-spec.ts Flakiness
1 Proxy Logging > request logging > xhr log has response body/status code

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@marktnoonan marktnoonan marked this pull request as ready for review January 4, 2022 15:56
Copy link
Contributor

@elevatebart elevatebart left a comment

Choose a reason for hiding this comment

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

The choice mashing together links and button is not clearly justifued. but that is a choice that was made along time ago...

Apart from the 2 questions I have LGTM

{{ t('createSpec.viewSpecPatternButton') }}
</Button>
</router-link>
<Button
Copy link
Contributor

Choose a reason for hiding this comment

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

could we simply have added custom to the router link?
https://next.router.vuejs.org/api/#custom

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ooh possibly, I didn't know about custom. I still like the API of our button component accepting to & href - it mirrors Vuetify's v-btn API. I'm open to revisit this soon though, there's currently only this one case where we are using it so a refactor would be low-effort.

packages/app/src/specs/SpecListGitInfo.vue Show resolved Hide resolved
@marktnoonan marktnoonan merged commit 4b3adc9 into 10.0-release Jan 7, 2022
@marktnoonan marktnoonan deleted the UNIFY-693-component-test-audit branch January 7, 2022 18:38
tgriesser added a commit that referenced this pull request Jan 7, 2022
* 10.0-release:
  chore: remove unused components (#19618)
  fix: dev-server types (#19576)
  test: ct audit updates (#19464)
  chore: fix temporarily skipped specs on 10.0-release (#19611)
  fix: remove gremlins characters from cypress types
  freeze ipc
  fix test
  test(launchpad): add e2e tests for Project View - Global mode (#19267)
  test(unify): Left Nav E2E Additional Tests (#19428)
tgriesser added a commit that referenced this pull request Jan 7, 2022
* 10.0-release:
  chore: remove unused components (#19618)
  fix: dev-server types (#19576)
  test: ct audit updates (#19464)
  chore: fix temporarily skipped specs on 10.0-release (#19611)
  fix: remove gremlins characters from cypress types
  freeze ipc
  fix test
  test(launchpad): add e2e tests for Project View - Global mode (#19267)
  test(unify): Left Nav E2E Additional Tests (#19428)
  ci: publish test artifacts for frontend-shared & app too (#19592)
  fix: union type to work in graphql tests (#19447)
tgriesser added a commit that referenced this pull request Jan 13, 2022
* 10.0-release: (28 commits)
  fix: flake in shelljs scripts during postinstall (#19678)
  fix: various lifecycle issues, followup to #19572 (#19683)
  feat: error screens in app when cloud runs are failing (#18980)
  fix: open browser at correct time during lifecycle (#19572)
  chore: remove unused types (#19621)
  fix: fileparts processing and cleanup (#19660)
  chore: change integration->e2e throughout code base (#19345)
  fix(unify): correct location of snapshot pinning UI in runner (#19640)
  fix: runnable header open in IDE and filename (#19630)
  feat(unify): allow prompts to auto-open after set time (#19571)
  test(unify): Additional navigation tests for log in workflows (#19574)
  fix(unify): minor UI bugs in the reporter (#19445)
  fix: surface openSSL unhandled rejection errors that occur within plugin code (#19598)
  feat: add spec watcher to data-context (#19583)
  chore: remove unused components (#19618)
  fix: dev-server types (#19576)
  test: ct audit updates (#19464)
  chore: fix temporarily skipped specs on 10.0-release (#19611)
  fix: remove gremlins characters from cypress types
  freeze ipc
  ...
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