-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into combobox7998
- Loading branch information
Showing
148 changed files
with
1,247 additions
and
1,700 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-45.5 KB
.yarn/cache/@actions-http-client-npm-1.0.6-b624868e85-ee3eafa28b.zip
Binary file not shown.
Binary file removed
BIN
-19.7 KB
.yarn/cache/@actions-http-client-npm-2.0.1-8d69921341-799ec3df91.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-13.3 KB
.yarn/cache/@octokit-auth-token-npm-2.5.0-a1c6ffb640-45949296c0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+415 KB
.yarn/cache/@octokit-openapi-types-npm-19.0.0-064193076f-9a8125ab4e.zip
Binary file not shown.
Binary file removed
BIN
-22 KB
.yarn/cache/@octokit-plugin-paginate-rest-npm-1.1.2-b0b3e646dc-f04f5ca282.zip
Binary file not shown.
Binary file removed
BIN
-40.6 KB
.yarn/cache/@octokit-plugin-paginate-rest-npm-2.21.3-82d2ad1bba-acf31de2ba.zip
Binary file not shown.
Binary file added
BIN
+35.6 KB
.yarn/cache/@octokit-plugin-paginate-rest-npm-9.0.0-fb07663301-4a8543f3e4.zip
Binary file not shown.
Binary file added
BIN
+167 KB
.yarn/cache/@octokit-plugin-rest-endpoint-methods-npm-10.0.1-28cbf3f633-4873a76976.zip
Binary file not shown.
Binary file removed
BIN
-272 KB
.yarn/cache/@octokit-plugin-rest-endpoint-methods-npm-2.4.0-c786d75f5b-c7e89b6cdd.zip
Binary file not shown.
Binary file removed
BIN
-157 KB
.yarn/cache/@octokit-plugin-rest-endpoint-methods-npm-5.16.2-f54316c392-30fcc50c33.zip
Binary file not shown.
Binary file removed
BIN
-10.3 KB
.yarn/cache/@octokit-request-error-npm-1.2.0-0ef613ae16-4a811114e0.zip
Binary file not shown.
Binary file removed
BIN
-11.2 KB
.yarn/cache/@octokit-request-error-npm-2.1.0-51ac624306-baec2b5700.zip
Binary file not shown.
Binary file added
BIN
+9.7 KB
.yarn/cache/@octokit-request-error-npm-5.0.1-eda589102d-a681341e43.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-10.8 KB
.yarn/cache/octokit-pagination-methods-npm-1.1.0-ce2bd023d6-1fb85baa6b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.06 KB
.yarn/cache/universal-user-agent-npm-4.0.0-9b1bcfcf6a-798e452472.zip
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,6 @@ | |
], | ||
"dependencies": { | ||
"@actions/core": "^1.2.3", | ||
"@actions/github": "^2.1.1" | ||
"@actions/github": "^6.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
], | ||
"dependencies": { | ||
"@actions/core": "^1.2.3", | ||
"@actions/github": "^2.1.1" | ||
"@actions/github": "^6.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2023 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const { expect, test } = require('@playwright/test'); | ||
const { visitStory } = require('../../test-utils/storybook'); | ||
|
||
test.describe('FormLabel @avt', () => { | ||
test('@avt-default-state FormLabel', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'FormLabel', | ||
id: 'components-formlabel--default', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
await expect(page).toHaveNoACViolations('FormLabel'); | ||
}); | ||
|
||
test('@avt-advanced-states FormLabel with tooltip', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'FormLabel', | ||
id: 'components-formlabel--with-tooltip', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
await expect(page).toHaveNoACViolations('FormLabel-with-tooltip'); | ||
}); | ||
|
||
test('@avt-keyboard-nav FormLabel with tooltip', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'FormLabel', | ||
id: 'components-formlabel--with-tooltip', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
|
||
await expect(page.getByText('Form label with Tooltip')).toBeVisible(); | ||
await page.keyboard.press('Tab'); | ||
await expect( | ||
page | ||
.getByText( | ||
'This can be used to provide more information about a field.' | ||
) | ||
.first() | ||
).toBeVisible(); | ||
await page.keyboard.press('Tab'); | ||
await page.keyboard.press('Enter'); | ||
await expect( | ||
page | ||
.getByText( | ||
'This can be used to provide more information about a field.' | ||
) | ||
.last() | ||
).toBeVisible(); | ||
await page.keyboard.press('Escape'); | ||
await expect( | ||
page | ||
.getByText( | ||
'This can be used to provide more information about a field.' | ||
) | ||
.last() | ||
).not.toBeVisible(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2023 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
import { expect, test } from '@playwright/test'; | ||
import { visitStory } from '../../test-utils/storybook'; | ||
|
||
test.describe('Tag @avt', () => { | ||
test('@avt-default-state Tag', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'Tag', | ||
id: 'components-tag--default', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
await expect(page).toHaveNoACViolations('Tag'); | ||
}); | ||
|
||
test('@avt-advanced-states Tag skeleton', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'Tag', | ||
id: 'components-tag--skeleton', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
await expect(page).toHaveNoACViolations('Tag-skeleton'); | ||
}); | ||
|
||
test('@avt-keyboard-nav Tag', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'Tag', | ||
id: 'components-tag--playground', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
args: { | ||
filter: true, | ||
}, | ||
}); | ||
|
||
await expect(page.getByText('Tag content')).toBeVisible(); | ||
await page.keyboard.press('Tab'); | ||
await expect( | ||
page.getByRole('button', { name: 'Clear filter' }) | ||
).toBeFocused(); | ||
}); | ||
}); |
Oops, something went wrong.