-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/CDEP-3759-colon-for-beta-release
- Loading branch information
Showing
98 changed files
with
907 additions
and
119 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
15 changes: 15 additions & 0 deletions
15
packages/core/src/components/banner/test/default/darkmode/banner.e2e.ts
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,15 @@ | ||
import { test } from 'stencil-playwright'; | ||
import { expect } from '@playwright/test'; | ||
|
||
const componentTestPath = 'src/components/banner/test/default/darkmode/index.html'; | ||
|
||
test.describe.parallel('tds-banner-default-darkmode', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(componentTestPath); | ||
}); | ||
|
||
test('renders default banner correctly with darkmode', async ({ page }) => { | ||
/* Check diff on screenshot */ | ||
await expect(page).toHaveScreenshot({ maxDiffPixels: 0 }); | ||
}); | ||
}); |
Binary file added
BIN
+9.92 KB
...ner-default-darkmode-renders-default-banner-correctly-with-darkmode-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
18 changes: 5 additions & 13 deletions
18
...ponents/banner/test/default/banner.e2e.ts → ...nner/test/default/lightmode/banner.e2e.ts
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
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
packages/core/src/components/banner/test/error/darkmode/banner.e2e.ts
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,15 @@ | ||
import { test } from 'stencil-playwright'; | ||
import { expect } from '@playwright/test'; | ||
|
||
const componentTestPath = 'src/components/banner/test/error/darkmode/index.html'; | ||
|
||
test.describe.parallel('tds-banner-error-darkmode', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(componentTestPath); | ||
}); | ||
|
||
test('renders error banner correctly with darkmode', async ({ page }) => { | ||
/* Check diff on screenshot */ | ||
await expect(page).toHaveScreenshot({ maxDiffPixels: 0 }); | ||
}); | ||
}); |
Binary file added
BIN
+9.86 KB
...-banner-error-darkmode-renders-error-banner-correctly-with-darkmode-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
packages/core/src/components/banner/test/error/darkmode/index.html
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 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Banner - Error</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" /> | ||
<link rel="stylesheet" href="../../../../../dist/tegel/tegel.css" /> | ||
<script type="module"> | ||
import { defineCustomElements } from '../../../../../loader/index.es2017.js'; | ||
defineCustomElements(); | ||
</script> | ||
</head> | ||
|
||
<body class="tds-mode-dark" style="background-color: var(--tds-grey-958); padding: 20px"> | ||
<tds-banner | ||
variant="error" | ||
header="This is a header text area" | ||
subheader="This is the subheader text area" | ||
> | ||
<tds-link slot="actions"><a href="/">Link example</a></tds-link> | ||
</tds-banner> | ||
</body> | ||
</html> |
10 changes: 5 additions & 5 deletions
10
...omponents/banner/test/error/banner.e2e.ts → ...banner/test/error/lightmode/banner.e2e.ts
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
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
packages/core/src/components/banner/test/information/darkmode/banner.e2e.ts
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,15 @@ | ||
import { test } from 'stencil-playwright'; | ||
import { expect } from '@playwright/test'; | ||
|
||
const componentTestPath = 'src/components/banner/test/information/darkmode/index.html'; | ||
|
||
test.describe.parallel('tds-banner-information-darkmode', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(componentTestPath); | ||
}); | ||
|
||
test('renders information banner correctly with darkmode', async ({ page }) => { | ||
/* Check diff on screenshot */ | ||
await expect(page).toHaveScreenshot({ maxDiffPixels: 0 }); | ||
}); | ||
}); |
Binary file added
BIN
+9.93 KB
...rmation-darkmode-renders-information-banner-correctly-with-darkmode-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
packages/core/src/components/banner/test/information/darkmode/index.html
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 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Banner - Information</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" /> | ||
<link rel="stylesheet" href="../../../../../dist/tegel/tegel.css" /> | ||
<script type="module"> | ||
import { defineCustomElements } from '../../../../../loader/index.es2017.js'; | ||
defineCustomElements(); | ||
</script> | ||
</head> | ||
|
||
<body class="tds-mode-dark" style="background-color: var(--tds-grey-958); padding: 20px"> | ||
<tds-banner | ||
variant="information" | ||
header="This is a header text area" | ||
subheader="This is the subheader text area" | ||
> | ||
<tds-link slot="actions"><a href="/">Link example</a></tds-link> | ||
</tds-banner> | ||
</body> | ||
</html> |
10 changes: 5 additions & 5 deletions
10
...nts/banner/test/information/banner.e2e.ts → .../test/information/lightmode/banner.e2e.ts
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
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
packages/core/src/components/breadcrumbs/test/default/darkmode/breadcrumbs.e2e.ts
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 @@ | ||
import { test } from 'stencil-playwright'; | ||
import { expect } from '@playwright/test'; | ||
|
||
const componentTestPath = 'src/components/breadcrumbs/test/default/darkmode/index.html'; | ||
|
||
test.describe.parallel('tds-breadcrumbs-default-darkmode', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(componentTestPath); | ||
}); | ||
|
||
test('renders default breadcrumbs correctly', async ({ page }) => { | ||
/* Check diff on screenshot */ | ||
await expect(page).toHaveScreenshot({ maxDiffPixels: 0 }); | ||
}); | ||
|
||
test('page 3 item should be able to become focused', async ({ page }) => { | ||
const pageThree = page.getByText(/Page 3/); | ||
await pageThree.focus(); | ||
|
||
/* Check diff on screenshot */ | ||
await expect(page).toHaveScreenshot({ maxDiffPixels: 0 }); | ||
}); | ||
}); |
Binary file added
BIN
+6.66 KB
...rumbs-default-darkmode-page-3-item-should-be-able-to-become-focused-1-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
+6.62 KB
...-breadcrumbs-default-darkmode-renders-default-breadcrumbs-correctly-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions
27
packages/core/src/components/breadcrumbs/test/default/darkmode/index.html
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,27 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Breadcrumbs - Default</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" /> | ||
<link rel="stylesheet" href="../../../../../dist/tegel/tegel.css" /> | ||
<script type="module"> | ||
import { defineCustomElements } from '../../../../../loader/index.es2017.js'; | ||
defineCustomElements(); | ||
</script> | ||
</head> | ||
|
||
<body class="tds-mode-dark" style="background-color: var(--tds-grey-958)"> | ||
<tds-breadcrumbs> | ||
<tds-breadcrumb> | ||
<a href="#">Page 1</a> | ||
</tds-breadcrumb> | ||
<tds-breadcrumb> | ||
<a href="#">Page 2</a> | ||
</tds-breadcrumb> | ||
<tds-breadcrumb current> | ||
<a href="#">Page 3</a> | ||
</tds-breadcrumb> | ||
</tds-breadcrumbs> | ||
</body> | ||
</html> |
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
File renamed without changes
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
packages/core/src/components/button/test/secondary/primary/darkmode/button.e2e.ts
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,18 @@ | ||
import { test } from 'stencil-playwright'; | ||
import { expect } from '@playwright/test'; | ||
|
||
const componentTestPath = 'src/components/button/test/secondary/primary/darkmode/index.html'; | ||
|
||
test.describe.parallel('tds-button-secondary-primary-darkmode', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(componentTestPath); | ||
}); | ||
|
||
test('renders secondary button correctly', async ({ page }) => { | ||
const button = page.getByTestId('tds-button-testid'); | ||
await expect(button).toHaveCount(1); | ||
|
||
/* Check diff on screenshot */ | ||
await expect(page).toHaveScreenshot({ maxDiffPixels: 0 }); | ||
}); | ||
}); |
Binary file added
BIN
+5.32 KB
...utton-secondary-primary-darkmode-renders-secondary-button-correctly-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
packages/core/src/components/button/test/secondary/primary/darkmode/index.html
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 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Button - Secondary</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" /> | ||
<link rel="stylesheet" href="../../../../../../dist/tegel/tegel.css" /> | ||
<script type="module"> | ||
import { defineCustomElements } from '../../../../../../loader/index.es2017.js'; | ||
defineCustomElements(); | ||
</script> | ||
</head> | ||
|
||
<body class="tds-mode-dark" style="background-color: var(--tds-grey-958); padding: 20px"> | ||
<tds-button | ||
text="Button" | ||
variant="secondary" | ||
mode-variant="primary" | ||
size="md" | ||
data-testid="tds-button-testid" | ||
></tds-button> | ||
</body> | ||
</html> |
18 changes: 18 additions & 0 deletions
18
packages/core/src/components/button/test/secondary/primary/lightmode/button.e2e.ts
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,18 @@ | ||
import { test } from 'stencil-playwright'; | ||
import { expect } from '@playwright/test'; | ||
|
||
const componentTestPath = 'src/components/button/test/secondary/primary/lightmode/index.html'; | ||
|
||
test.describe.parallel('tds-button-secondary-primary-lightmode', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(componentTestPath); | ||
}); | ||
|
||
test('renders secondary button correctly', async ({ page }) => { | ||
const button = page.getByTestId('tds-button-testid'); | ||
await expect(button).toHaveCount(1); | ||
|
||
/* Check diff on screenshot */ | ||
await expect(page).toHaveScreenshot({ maxDiffPixels: 0 }); | ||
}); | ||
}); |
Binary file added
BIN
+5.18 KB
...tton-secondary-primary-lightmode-renders-secondary-button-correctly-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.