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: page in various screens #3736

Merged

Conversation

sashuk
Copy link
Contributor

@sashuk sashuk commented Jul 20, 2023

FX-4090

Description

This pull request adds tests that make sure that the dropdown menu (with hamburger button) works and looks as expected on all screens.

⚠️ Additional testing was performed

The disablePortal was added to the packages/picasso/src/PageHamburger/PageHamburger.tsx in order to observe the menu when testing in Cypress (fix discovered by @mkrl)

How to test

Screenshot 2023-07-24 at 21 09 38
  • run portal locally and check it on various screen sizes

Development checks

All development checks should be done and set checked to pass the
GitHub Bot: TODOLess action

PR commands

List of available commands:

  • @toptal-bot run package:alpha-release - Release alpha version
  • @toptal-anvil ping reviewers - Ping FX team for review
PR Review Guidelines

When to approve? ✅

You are OK with merging this PR and

  1. You have no extra requests.
  2. You have optional requests.
    1. Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌

You are not OK with merging this PR because

  1. Something is broken after the changes.
  2. Acceptance criteria is not reached.
  3. Code is dirty.

When to comment (neither ✅ nor ❌)

You want your comments to be addressed before merging this PR in cases like:

  1. There are leftovers like unnecessary logs, comments, etc.
  2. You have an opinionated comment regarding the code that requires a discussion.
  3. You have questions.

How to handle the comments?

  1. An owner of a comment is the only one who can resolve it.
  2. An owner of a comment must resolve it when it's addressed.
  3. A PR owner must reply with ✅ when a comment is addressed.

@sashuk sashuk self-assigned this Jul 20, 2023
@changeset-bot
Copy link

changeset-bot bot commented Jul 20, 2023

🦋 Changeset detected

Latest commit: 315f88e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@toptal/picasso Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@toptal-devbot toptal-devbot temporarily deployed to temploy July 20, 2023 19:03 Inactive
@sashuk sashuk changed the title fix: aa test: breakpoint ranges for page Jul 21, 2023
@toptal-devbot toptal-devbot temporarily deployed to temploy July 21, 2023 16:33 Inactive
@toptal-devbot toptal-devbot temporarily deployed to temploy July 21, 2023 18:05 Inactive
@sashuk sashuk force-pushed the fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test branch from 6cef84b to 2454b83 Compare July 24, 2023 10:28
@sashuk sashuk changed the title test: breakpoint ranges for page test: page in various screens Jul 24, 2023
@sashuk
Copy link
Contributor Author

sashuk commented Jul 24, 2023

@toptal-bot run package:alpha-release

@toptal-devbot toptal-devbot temporarily deployed to temploy July 24, 2023 10:40 Inactive
@sashuk sashuk force-pushed the fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test branch from 2454b83 to 4c13182 Compare July 24, 2023 19:00
@toptal-devbot toptal-devbot temporarily deployed to temploy July 24, 2023 19:13 Inactive
@sashuk sashuk force-pushed the fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test branch from 4c13182 to b77b632 Compare July 24, 2023 19:24
@sashuk sashuk marked this pull request as ready for review July 24, 2023 19:26
@sashuk sashuk requested a review from a team July 24, 2023 19:26
@toptal-devbot toptal-devbot temporarily deployed to temploy July 24, 2023 19:41 Inactive
@sashuk
Copy link
Contributor Author

sashuk commented Jul 25, 2023

@toptal-anvil ping reviewers

Copy link
Contributor

@TomasSlama TomasSlama left a comment

Choose a reason for hiding this comment

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

it does not create expected images
image

@toptal-devbot toptal-devbot temporarily deployed to temploy July 25, 2023 10:30 Inactive
@toptal-devbot toptal-devbot temporarily deployed to temploy July 25, 2023 10:43 Inactive
@sashuk sashuk force-pushed the fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test branch 2 times, most recently from 2dbb1ab to e81258d Compare July 25, 2023 11:51
@toptal-devbot toptal-devbot temporarily deployed to temploy July 25, 2023 12:05 Inactive
@toptal-devbot toptal-devbot temporarily deployed to temploy July 25, 2023 12:29 Inactive
@sashuk
Copy link
Contributor Author

sashuk commented Jul 25, 2023

@TomasSlama Thank you for noticing, addressed!

Screenshot 2023-07-25 at 17 16 55

@sashuk sashuk requested review from TomasSlama and a team July 25, 2023 15:17
@toptal-devbot toptal-devbot temporarily deployed to temploy July 25, 2023 15:19 Inactive
Copy link
Contributor

@TomasSlama TomasSlama left a comment

Choose a reason for hiding this comment

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

Looks good, I think your new screenshot revealed a style bug

image
we are missing bottom spacing in the header.

Also I think that the one diff is not expected
image

@sashuk sashuk force-pushed the fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test branch from ddd97a9 to de3bd82 Compare July 26, 2023 07:58
Copy link

@augustobmoura augustobmoura left a comment

Choose a reason for hiding this comment

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

Added some comments

cypress/component/Page.spec.tsx Outdated Show resolved Hide resolved
@sashuk sashuk force-pushed the fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test branch from d204710 to 3255a5c Compare July 26, 2023 13:19
@sashuk sashuk force-pushed the fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test branch from 3255a5c to adf85b9 Compare July 26, 2023 13:28
@toptal-devbot toptal-devbot temporarily deployed to temploy July 26, 2023 13:28 Inactive
@toptal-devbot toptal-devbot temporarily deployed to temploy July 26, 2023 13:40 Inactive
Copy link

@augustobmoura augustobmoura left a comment

Choose a reason for hiding this comment

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

I added some comments, mostly on documenting the workarounds and non-obvious choices

cypress/component/Page.spec.tsx Outdated Show resolved Hide resolved
cypress/component/Page.spec.tsx Outdated Show resolved Hide resolved
cypress/component/Page.spec.tsx Show resolved Hide resolved
packages/picasso/src/PageHamburger/PageHamburger.tsx Outdated Show resolved Hide resolved
@toptal-devbot toptal-devbot temporarily deployed to temploy July 26, 2023 14:33 Inactive
@sashuk sashuk force-pushed the fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test branch from e4d967f to 5c2ab6a Compare July 26, 2023 14:37
@toptal toptal deleted a comment from toptal-devbot Jul 26, 2023
@sashuk
Copy link
Contributor Author

sashuk commented Jul 26, 2023

@toptal-bot run package:alpha-release

@toptal-devbot
Copy link
Collaborator

Your alpha package is ready 🎉
yarn add @topkit/analytics-charts@48.0.1-alpha-fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test-5c2ab6a80.28+5c2ab6a80
yarn add @toptal/picasso@37.1.3-alpha-fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test-5c2ab6a80.8+5c2ab6a80
yarn add @toptal/picasso-charts@51.0.1-alpha-fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test-5c2ab6a80.28+5c2ab6a80
yarn add @toptal/picasso-codemod@5.5.3-alpha-fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test-5c2ab6a80.39+5c2ab6a80
yarn add @toptal/picasso-forms@60.0.1-alpha-fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test-5c2ab6a80.20+5c2ab6a80
yarn add @toptal/picasso-pictograms@1.1.2-alpha-fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test-5c2ab6a80.114+5c2ab6a80
yarn add @toptal/picasso-provider@3.1.3-alpha-fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test-5c2ab6a80.103+5c2ab6a80
yarn add @toptal/picasso-rich-text-editor@4.0.2-alpha-fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test-5c2ab6a80.15+5c2ab6a80
yarn add @toptal/picasso-shared@12.0.1-alpha-fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test-5c2ab6a80.159+5c2ab6a80

@toptal-devbot toptal-devbot temporarily deployed to temploy July 26, 2023 14:49 Inactive
@sashuk sashuk force-pushed the fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test branch from 5c2ab6a to d89dd3b Compare July 26, 2023 14:53
@sashuk sashuk force-pushed the fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test branch from d89dd3b to 315f88e Compare July 26, 2023 14:55
Copy link

@augustobmoura augustobmoura left a comment

Choose a reason for hiding this comment

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

Nice work @sashuk 👍

@toptal-devbot toptal-devbot temporarily deployed to temploy July 26, 2023 15:09 Inactive
@sashuk sashuk merged commit 2f9735a into master Jul 26, 2023
13 checks passed
@sashuk sashuk deleted the fx-4090-add-all-breakpoint-ranges-as-targets-in-pagetopbar-test branch July 26, 2023 18:33
@toptal-build toptal-build mentioned this pull request Jul 26, 2023
1 task
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.

5 participants