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

misc: display AUT bar in dark mode #31360

Merged
merged 8 commits into from
Mar 24, 2025
Merged

misc: display AUT bar in dark mode #31360

merged 8 commits into from
Mar 24, 2025

Conversation

jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented Mar 21, 2025

Additional details

Update AUT bar to be dark mode - according to Figma

I did not actually end up getting rid of the Selector Playground active button and moving the state into the AUT bar. This is a bit more complex of a change than I want to spend time on since this will likely be removed with Studio enhancements anyway.

Steps to test

  • Run yarn
  • Check in run mode. In packages/app run yarn cypress:run:e2e --no-exit --headed --spec=cypress/e2e/runner/cloud-debug-filter.cy.ts --browser=chrome
  • Check in open mode. In packages/app run yarn cypress:open and choose an end-to-end and ct test to view.
  • Manually open selector playground and use it to get various UIs
  • Manually open browser dropdown and use it to get various UIs
  • Scale AUT to see the scale % UI is in dark mode

How has the user experience changed?

Before

Run mode

Screenshot 2025-03-24 at 11 21 24 AM

Open mode

Screenshot 2025-03-24 at 11 19 31 AM

Selector Playground expanded

Screenshot 2025-03-24 at 11 19 38 AM

Selector Playground invalid

Screenshot 2025-03-24 at 11 19 52 AM

Tooltip

Screenshot 2025-03-24 at 11 20 00 AM

Selector Dropdown

Screenshot 2025-03-24 at 11 19 44 AM

Browser Dropdown

Screenshot 2025-03-24 at 11 20 07 AM

CT Testing

Screenshot 2025-03-24 at 11 20 30 AM

After

Run mode

Screenshot 2025-03-24 at 11 11 21 AM

Open mode

Screenshot 2025-03-24 at 11 13 00 AM

Selector Playground expanded

Screenshot 2025-03-24 at 11 13 09 AM

Selector Playground invalid

Screenshot 2025-03-24 at 11 13 19 AM

Tooltip

Screenshot 2025-03-24 at 11 13 25 AM

Selector Dropdown

Screenshot 2025-03-24 at 11 13 36 AM

Browser Dropdown

Screenshot 2025-03-24 at 11 13 52 AM

CT Testing

Screenshot 2025-03-24 at 11 14 22 AM

PR Tasks

Copy link

cypress bot commented Mar 21, 2025

cypress    Run #61153

Run Properties:  status check passed Passed #61153  •  git commit c42dadbd6c: Merge branch 'develop' into aut-dark-mode
Project cypress
Branch Review aut-dark-mode
Run status status check passed Passed #61153
Run duration 18m 41s
Commit git commit c42dadbd6c: Merge branch 'develop' into aut-dark-mode
Committer Jennifer Shehane
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 10
Tests that did not run due to a developer annotating a test with .skip  Pending 1232
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 32133
View all changes introduced in this branch ↗︎
UI Coverage  46.59%
  Untested elements 183  
  Tested elements 164  
Accessibility  92.63%
  Failed rules  3 critical   8 serious   2 moderate   2 minor
  Failed elements 881  

@jennifer-shehane jennifer-shehane self-assigned this Mar 24, 2025
cy.startAppServer(testingType)
cy.visitApp()
cy.specsPageIsVisible()
describe('dragging panels', () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

I split these tests out because...these tests are bonkers. It seems like it was originally testing the AUT scale %, but then had a bunch of UI assertions just tacked onto it.

Additionally, I removed a test around testing the 200 reporter width at a 500 width screen. The UI is so smooshed, it's a bit ridiculous to even test the UI at that size.

@@ -23,7 +23,7 @@
"dependencies": {},
"devDependencies": {
"@cypress-design/icon-registry": "^1.5.1",
"@cypress-design/vue-button": "^1.1.0",
"@cypress-design/vue-button": "^1.3.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

We're actually not even using this component in the AUT, so this update doesn't do anything.

@@ -182,26 +160,20 @@ describe('SelectorPlayground', () => {
})
})

// TODO: fix this flaky test
it.skip('shows tooltips when buttons are focused', () => {
it('shows copy tooltip when button is focused', () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Split these tests up. I think they're flaky because it's trying to do one tooltip after another which just doesn't work well with our tooltip components.

@cacieprins cacieprins self-requested a review March 24, 2025 15:31
@jennifer-shehane
Copy link
Member Author

This Percy snapshot is just not accurate btw. I ran this locally and it doesn't do this. I think it may be a percy glitch.
Screenshot 2025-03-24 at 3 39 57 PM

@jennifer-shehane jennifer-shehane merged commit 4670b13 into develop Mar 24, 2025
87 of 90 checks passed
@jennifer-shehane jennifer-shehane deleted the aut-dark-mode branch March 24, 2025 19:52
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 26, 2025

Released in 14.2.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v14.2.1, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Mar 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Studio: Update URL bar to be 'dark mode'
3 participants