-
Notifications
You must be signed in to change notification settings - Fork 545
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 dependabot/npm_and_yarn/babel/cli-7.21.0
- Loading branch information
Showing
73 changed files
with
348 additions
and
167 deletions.
There are no files selected for viewing
Binary file added
BIN
+7.23 KB
....test.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.7 KB
....ts-snapshots/DialogV2-Basic-Confirmation-Dialog-dark-colorblind-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.19 KB
...ogV2.test.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.6 KB
...test.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-dark-dimmed-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.21 KB
...st.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27 KB
...-snapshots/DialogV2-Basic-Confirmation-Dialog-dark-high-contrast-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.23 KB
...ts/DialogV2.test.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.6 KB
...alogV2.test.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-dark-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.23 KB
....test.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.6 KB
....ts-snapshots/DialogV2-Basic-Confirmation-Dialog-dark-tritanopia-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.27 KB
...test.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.7 KB
...ts-snapshots/DialogV2-Basic-Confirmation-Dialog-light-colorblind-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.33 KB
...t.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.6 KB
...snapshots/DialogV2-Basic-Confirmation-Dialog-light-high-contrast-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.27 KB
...s/DialogV2.test.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.7 KB
...logV2.test.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-light-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.27 KB
...test.ts-snapshots/DialogV2-Basic-Confirmation-Dialog-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.7 KB
...ts-snapshots/DialogV2-Basic-Confirmation-Dialog-light-tritanopia-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.23 KB
...ents/DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+157 KB
...DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-dark-colorblind-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.19 KB
...mponents/DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+160 KB
...nts/DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-dark-dimmed-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.21 KB
...s/DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+156 KB
...logV2.test.ts-snapshots/DialogV2-Basic-Dialog-dark-high-contrast-open-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.23 KB
...hots/components/DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+158 KB
...components/DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-dark-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.23 KB
...ents/DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+157 KB
...DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-dark-tritanopia-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.27 KB
...nts/DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+154 KB
...ialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-light-colorblind-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.33 KB
.../DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+154 KB
...ogV2.test.ts-snapshots/DialogV2-Basic-Dialog-light-high-contrast-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.27 KB
...ots/components/DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+154 KB
...omponents/DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-light-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.27 KB
...nts/DialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+154 KB
...ialogV2.test.ts-snapshots/DialogV2-Basic-Dialog-light-tritanopia-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.23 KB
...omponents/DialogV2.test.ts-snapshots/DialogV2-Default-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.6 KB
...ents/DialogV2.test.ts-snapshots/DialogV2-Default-dark-colorblind-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.19 KB
...ts/components/DialogV2.test.ts-snapshots/DialogV2-Default-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+17.9 KB
...mponents/DialogV2.test.ts-snapshots/DialogV2-Default-dark-dimmed-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.21 KB
...onents/DialogV2.test.ts-snapshots/DialogV2-Default-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.8 KB
...s/DialogV2.test.ts-snapshots/DialogV2-Default-dark-high-contrast-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.23 KB
...snapshots/components/DialogV2.test.ts-snapshots/DialogV2-Default-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.6 KB
...hots/components/DialogV2.test.ts-snapshots/DialogV2-Default-dark-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.23 KB
...omponents/DialogV2.test.ts-snapshots/DialogV2-Default-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.6 KB
...ents/DialogV2.test.ts-snapshots/DialogV2-Default-dark-tritanopia-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.27 KB
...mponents/DialogV2.test.ts-snapshots/DialogV2-Default-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.4 KB
...nts/DialogV2.test.ts-snapshots/DialogV2-Default-light-colorblind-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.33 KB
...nents/DialogV2.test.ts-snapshots/DialogV2-Default-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.2 KB
.../DialogV2.test.ts-snapshots/DialogV2-Default-light-high-contrast-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.27 KB
...napshots/components/DialogV2.test.ts-snapshots/DialogV2-Default-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.4 KB
...ots/components/DialogV2.test.ts-snapshots/DialogV2-Default-light-open-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.27 KB
...mponents/DialogV2.test.ts-snapshots/DialogV2-Default-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.4 KB
...nts/DialogV2.test.ts-snapshots/DialogV2-Default-light-tritanopia-open-linux.png
Oops, something went wrong.
8 changes: 6 additions & 2 deletions
8
docs/content/drafts/Dialog.mdx → docs/content/drafts/Dialog2.mdx
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,131 @@ | ||
import {test, expect} from '@playwright/test' | ||
import {visit} from '../test-helpers/storybook' | ||
import {themes} from '../test-helpers/themes' | ||
|
||
test.describe('DialogV2', () => { | ||
test.describe('Default', () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-dialog--default', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
// Default state | ||
expect( | ||
await page.screenshot({ | ||
animations: 'disabled', | ||
}), | ||
).toMatchSnapshot(`DialogV2.Default.${theme}.png`) | ||
// Open Dialog | ||
await page.getByRole('button', {name: 'Show dialog'}).click() | ||
// wait for dialog to open | ||
await page.getByRole('dialog', {name: 'Dialog'}).waitFor() | ||
// Open state | ||
expect( | ||
await page.screenshot({ | ||
animations: 'disabled', | ||
}), | ||
).toMatchSnapshot(`DialogV2.Default.${theme}.open.png`) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-dialog--default', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations() | ||
}) | ||
}) | ||
} | ||
}) | ||
|
||
test.describe('Basic Dialog', () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-dialog-features--basic-dialog', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
// Default state | ||
expect( | ||
await page.screenshot({ | ||
animations: 'disabled', | ||
}), | ||
).toMatchSnapshot(`DialogV2.Basic Dialog.${theme}.png`) | ||
// Open Dialog | ||
await page.getByRole('button', {name: 'Show dialog'}).click() | ||
// wait for dialog to open | ||
await page.getByRole('dialog', {name: 'Dialog'}).waitFor() | ||
// Open state | ||
expect( | ||
await page.screenshot({ | ||
animations: 'disabled', | ||
}), | ||
).toMatchSnapshot(`DialogV2.Basic Dialog.${theme}.open.png`) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-dialog-features--basic-dialog', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations() | ||
}) | ||
}) | ||
} | ||
}) | ||
|
||
test.describe('Basic Confirmation Dialog', () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-dialog-features--basic-confirmation-dialog', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
// Default state | ||
expect( | ||
await page.screenshot({ | ||
animations: 'disabled', | ||
}), | ||
).toMatchSnapshot(`DialogV2.Basic Confirmation Dialog.${theme}.png`) | ||
// Open Dialog | ||
await page.getByRole('button', {name: 'Show dialog'}).click() | ||
// wait for dialog to open | ||
await page.getByRole('alertdialog').waitFor() | ||
// Open state | ||
expect( | ||
await page.screenshot({ | ||
animations: 'disabled', | ||
}), | ||
).toMatchSnapshot(`DialogV2.Basic Confirmation Dialog.${theme}.open.png`) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-dialog-features--basic-confirmation-dialog', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations() | ||
}) | ||
}) | ||
} | ||
}) | ||
}) |
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
File renamed without changes.
Oops, something went wrong.