-
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 renovate/eslint-plugin-jest-27.x
- Loading branch information
Showing
92 changed files
with
1,498 additions
and
415 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
Binary file renamed
BIN
+6.47 KB
...e/arg-npm-5.0.1-297491f918-9aefbcb120.zip → ...e/arg-npm-5.0.2-2f5805a547-6c69ada1a9.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
312 changes: 156 additions & 156 deletions
312
.yarn/releases/yarn-3.6.0.cjs → .yarn/releases/yarn-3.6.1.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
yarn-path ".yarn/releases/yarn-3.5.0.cjs" | ||
yarn-path ".yarn/releases/yarn-3.6.1.cjs" |
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
141 changes: 141 additions & 0 deletions
141
e2e/components/ProgressIndicator/ProgressIndicator-test.avt.e2e.js
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,141 @@ | ||
/** | ||
* 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('ProgressIndicator', () => { | ||
test('accessibility-checker @avt', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'ProgressIndicator', | ||
id: 'components-progressindicator--default', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
await expect(page).toHaveNoACViolations('ProgressIndicator'); | ||
}); | ||
|
||
test('accessibility-checker interactive progressindicator @avt', async ({ | ||
page, | ||
}) => { | ||
await visitStory(page, { | ||
component: 'ProgressIndicator', | ||
id: 'components-progressindicator--interactive', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
await expect(page).toHaveNoACViolations('ProgressIndicator-interactive'); | ||
}); | ||
|
||
test('accessibility-checker skeleton progressindicator @avt', async ({ | ||
page, | ||
}) => { | ||
await visitStory(page, { | ||
component: 'ProgressIndicator', | ||
id: 'components-progressindicator--skeleton', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
await expect(page).toHaveNoACViolations('ProgressIndicator-skeleton'); | ||
}); | ||
|
||
test('accessibility-checker - onHover @avt', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'ProgressIndicator', | ||
id: 'components-progressindicator--default', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
|
||
await expect(page.getByText('First step')).toBeVisible(); | ||
|
||
page.getByText('First step').hover(); | ||
|
||
await expect(page).toHaveNoACViolations('ProgressIndicator-onhover'); | ||
}); | ||
|
||
test('accessibility-checker - complete @avt', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'ProgressIndicator', | ||
id: 'components-progressindicator--default', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
|
||
// Checking if the 'complete' prop is adding the correct class | ||
expect(page.locator('.cds--progress-step--complete')).toBeTruthy(); | ||
}); | ||
|
||
test('accessibility-checker - current @avt', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'ProgressIndicator', | ||
id: 'components-progressindicator--default', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
|
||
// Checking if the 'current' prop is adding the correct class | ||
expect(page.locator('.cds--progress-step--current')).toBeTruthy(); | ||
}); | ||
|
||
test('accessibility-checker - interactive onHover @avt', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'ProgressIndicator', | ||
id: 'components-progressindicator--interactive', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
|
||
await expect(page.getByText('Click me')).toBeVisible(); | ||
|
||
page.getByText('Click me').hover(); | ||
|
||
await expect(page).toHaveNoACViolations( | ||
'ProgressIndicator-interactive-onhover' | ||
); | ||
}); | ||
|
||
test('progress indicator - keyboard nav', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'ProgressIndicator', | ||
id: 'components-progressindicator--interactive', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
// Testing the first element interaction | ||
await page.keyboard.press('Tab'); | ||
await expect(page.getByRole('button', { name: 'Click me' })).toBeVisible(); | ||
await page.keyboard.press('Tab'); | ||
await expect(page.getByRole('button', { name: 'Click me' })).toBeFocused(); | ||
|
||
await page.keyboard.press('Enter'); | ||
await page.keyboard.press('Escape'); | ||
|
||
// Testing the third element interaction | ||
await page.keyboard.press('Tab'); | ||
await expect( | ||
page.getByRole('button', { name: 'Third step' }) | ||
).toBeFocused(); | ||
|
||
await page.keyboard.press('Enter'); | ||
await page.keyboard.press('Escape'); | ||
|
||
await expect( | ||
page.getByRole('button', { name: 'Third step' }) | ||
).toBeFocused(); | ||
}); | ||
}); |
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,40 @@ | ||
/** | ||
* 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('TextInput @avt', () => { | ||
test('default state', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'TextInput', | ||
id: 'components-textinput--default', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
await expect(page).toHaveNoACViolations('TextInput'); | ||
}); | ||
|
||
test('disabled state', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'TextInput', | ||
id: 'components-textinput--playground', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
args: { | ||
disabled: 'true', | ||
}, | ||
}); | ||
|
||
await expect(page.getByRole('textbox')).toBeDisabled(); | ||
await expect(page).toHaveNoACViolations('TextInput-Disabled'); | ||
}); | ||
}); |
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,23 @@ | ||
# Getting Started with Code Sandbox styles | ||
|
||
First, run `yarn build` in the root of the `carbon` repository. | ||
|
||
```sh | ||
yarn install && yarn build | ||
``` | ||
|
||
Now, all you need to do is `cd` into the directory and run: | ||
|
||
```sh | ||
yarn install | ||
# or | ||
npm install | ||
|
||
|
||
yarn dev | ||
# or | ||
npm run dev | ||
``` | ||
|
||
Open [http://localhost:5173](http://localhost:5173) with your browser to see the | ||
result. |
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
Oops, something went wrong.