-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(text-field): move non-screenshot tests to not run for all style …
…configurations
- Loading branch information
Showing
6 changed files
with
165 additions
and
152 deletions.
There are no files selected for viewing
Binary file modified
BIN
+50 Bytes
(100%)
...2e.ts-snapshots/tds-footer-default-renders-default-footer-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.
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
22 changes: 7 additions & 15 deletions
22
packages/core/src/components/text-field/test/read-only-with-suffix/text-field.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 |
---|---|---|
@@ -1,24 +1,16 @@ | ||
import { test } from 'stencil-playwright'; | ||
import { expect } from '@playwright/test'; | ||
import { | ||
testConfigurations, | ||
getTestDescribeText, | ||
setupPage, | ||
} from '../../../../utils/testConfiguration'; | ||
|
||
const componentTestPath = 'src/components/text-field/test/read-only-with-suffix/index.html'; | ||
const componentName = 'tds-text-field'; | ||
const testDescription = 'TdsTextField - readOnly prop effect'; | ||
|
||
testConfigurations.withModeVariants.forEach((config) => { | ||
test.describe.parallel(getTestDescribeText(config, testDescription), () => { | ||
test.beforeEach(async ({ page }) => { | ||
await setupPage(page, config, componentTestPath, componentName); | ||
}); | ||
test.describe.parallel(testDescription, () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(componentTestPath); | ||
}); | ||
|
||
test('should hide the suffix icon when readOnly is true', async ({ page }) => { | ||
const suffixIcon = await page.locator('.text-field-slot-wrap-suffix'); | ||
await expect(suffixIcon).toBeHidden(); | ||
}); | ||
test('should hide the suffix icon when readOnly is true', async ({ page }) => { | ||
const suffixIcon = await page.locator('.text-field-slot-wrap-suffix'); | ||
await expect(suffixIcon).toBeHidden(); | ||
}); | ||
}); |