+
Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Conversation

clintcs
Copy link
Collaborator

@clintcs clintcs commented Sep 17, 2025

🚀 Description

N/A

📋 Checklist

  • I have followed the Contributing Guidelines.
  • I have added tests to cover new or updated functionality.
  • I have added or updated Storybook stories.
  • I have localized new strings.
  • I have followed the ARIA Authoring Practices Guide or met with the Accessibility Team.
  • I have included a changeset.
  • I have scheduled a design review.
  • I have reviewed the Storybook and Visual Test Report links below.

🔬 Manual Testing

N/A

Copy link

changeset-bot bot commented Sep 17, 2025

⚠️ No Changeset found

Latest commit: 985eb9c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

type: 'toggle',
bubbles: true,
cancelable: false,
composed: true,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No need to assert stuff like this with a not.toDispatchEvents() assertion.

const tooltip = page.getByTestId('tooltip');

await button.hover();
await expect(host).toDispatchEvents(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Bonus.

@clintcs clintcs force-pushed the migrate-toggle-tests branch from acf013e to fc7c30e Compare September 17, 2025 18:32
@clintcs clintcs force-pushed the migrate-toggle-tests branch from fc7c30e to 985eb9c Compare September 17, 2025 18:42
test.skip(
browserName === 'webkit',
'"finish" is dispatched inconsistently in CI. Or perhaps on Ubuntu. Try removing this when Webkit 26 is stable (TODO).',
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just a test to see if the Webkit 26 release candidate fixed the issue. No failures yet. I'll keep an eye on CI and unskip the other tests if this test remains stable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh man, that'd be awesome if so!

);

const host = page.locator('glide-core-toggle');
const switch$ = page.getByRole('switch');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Reserved word. Happy to use whatever naming convention.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah. I'm good with this 👍

@clintcs clintcs marked this pull request as ready for review September 18, 2025 12:27
test.skip(
browserName === 'webkit',
'"finish" is dispatched inconsistently in CI. Or perhaps on Ubuntu. Try removing this when Webkit 26 is stable (TODO).',
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh man, that'd be awesome if so!

);

const host = page.locator('glide-core-toggle');
const switch$ = page.getByRole('switch');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah. I'm good with this 👍

@clintcs clintcs added this pull request to the merge queue Sep 18, 2025
Merged via the queue into main with commit 0d0546d Sep 18, 2025
25 checks passed
@clintcs clintcs deleted the migrate-toggle-tests branch September 18, 2025 14:47
@clintcs clintcs mentioned this pull request Sep 23, 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.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载