Skip to content

Conversation

ZachJW34
Copy link
Contributor

User facing changelog

Adds fuzzy search to spec lists in runner and home page. Also deletes the flat spec list due to it not having much utility and the search functionality being inconsistent across the tree view and flat view.

Additional details

Screen.Recording.2021-11-17.at.2.55.22.PM.mov

PR Tasks

  • Have tests been added/updated?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 17, 2021

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Nov 17, 2021



Test summary

18649 0 216 7Flakiness 3


Run details

Project cypress
Status Passed
Commit 65ba18e
Started Nov 19, 2021 12:25 AM
Ended Nov 19, 2021 12:36 AM
Duration 11:40 💡
OS Linux Debian - 10.9
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

commands/net_stubbing_spec.ts Flakiness
1 network stubbing > waiting and aliasing > can timeout incrementally waiting on requests
2 network stubbing > waiting and aliasing > can timeout incrementally waiting on responses
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

@ImCesar ImCesar requested a review from a team November 17, 2021 20:09
Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

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

Just two comments, tested it out - works great.

I find the UI a bit hard to read using green for highlighting.

image

const search = ref('')
const specs = computed(() => {
const specs: ComputedRef<FuzzyFoundSpec[]> = computed(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We can just do

const specs = computed<FuzzyFoundSpec[]>(() => {

if (!search.value) {
return props.gql.specs?.edges || []
return specs.map((spec) => ({ ...spec, indexes: [] as number[] }))
Copy link
Contributor

Choose a reason for hiding this comment

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

We map over this one on line 59 than again on line 62, could we combine those to save a loop?

@ZachJW34
Copy link
Contributor Author

@lmiller1990 updated. Went with text-gray-1000 for the highlighted text on the specs list home page. White for the runner spec list, black for the other keeps it consistent
Screen Shot 2021-11-18 at 9 27 03 AM

@lmiller1990 lmiller1990 merged commit d8309ea into 10.0-release Nov 19, 2021
@lmiller1990 lmiller1990 deleted the use-fuzzy-search branch November 19, 2021 01:08
tgriesser added a commit that referenced this pull request Nov 21, 2021
* 10.0-release:
  feat: use fuzzy search (#18966)
  fix: onUnmounted warning in topnav (#18988)
  fix: CYPRESS_INTERNAL_VITE_DEV for development
  feat: Create default config file (#18943)
  feat(app): support editor preference (#18932)
tgriesser added a commit that referenced this pull request Nov 21, 2021
…e-data-clean-refactor

* tgriesser/chore/e2e-data-clean: (76 commits)
  chore: post-merge cleanup
  feat: use hoisted yarn install in binary build (#17285)
  fix: fix spec list header, "Create specs" prompt, add workspace recommended apollo extension (#18993)
  feat(unify): reporter settings (#18946)
  feat: add devServer to config file (#18962)
  fix: compile npm packages for node 12 (#18989)
  fix: show call count even if `cy.stub().log(false)`. (#18907)
  chore: Update TypeScript to 4.4.4 (#18930)
  feat: use fuzzy search (#18966)
  fix: onUnmounted warning in topnav (#18988)
  fix: wrap playground selectors in double quotes if not included (#18442)
  fix: flaky settings_spec test (#18979)
  fix: CYPRESS_INTERNAL_VITE_DEV for development
  feat: Create default config file (#18943)
  feat(app): support editor preference (#18932)
  chore: Update Chrome (stable) to 96.0.4664.45 (#18931)
  fix: Loading of specs with % in the filename (#18877)
  feat: improve vite DX (#18937)
  chore: refactor `create` into class `$Cy` (#18715)
  feat: Use plugins on config files (#18798)
  ...
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