-
Notifications
You must be signed in to change notification settings - Fork 310
feat(calendar-view): [calendar-view]add attributes #3525
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -9,6 +9,9 @@ test('显示模式', async ({ page }) => { | |||||
const dmonthDom = page.locator('.tiny-calendar-view-month__main') | ||||||
const timelineDom = page.locator('.tiny-calendar-view-week__timeline') | ||||||
const scheduleDom = page.locator('.tiny-calendar-view-week__schedule') | ||||||
|
||||||
const calendarHeader = page.locator('.tiny-calendar-view__header') | ||||||
await expect(calendarHeader.locator('div').first()).not.toHaveClass('.tiny-button .tiny-button--default') | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the CSS selector syntax in the test assertion. The selector - await expect(calendarHeader.locator('div').first()).not.toHaveClass('.tiny-button .tiny-button--default')
+ await expect(calendarHeader.locator('div').first()).not.toHaveClass(/tiny-button/) 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||
// 验证按钮是否选中,验证时间组件页面是否正确 | ||||||
await expect(monthBtn.locator('.tiny-svg')).toHaveClass(/fill-brand/) | ||||||
await expect(dmonthDom).toBeVisible() | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.