-
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(table): move non-screenshot tests to not run for all style confi…
…gurations
- Loading branch information
Showing
13 changed files
with
274 additions
and
209 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
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
38 changes: 15 additions & 23 deletions
38
packages/core/src/components/table/table/test/expandable-row/interaction-4.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,34 +1,26 @@ | ||
import { test } from 'stencil-playwright'; | ||
import { expect } from '@playwright/test'; | ||
import { | ||
testConfigurations, | ||
getTestDescribeText, | ||
setupPage, | ||
} from '../../../../../utils/testConfiguration'; | ||
|
||
const componentTestPath = 'src/components/table/table/test/expandable-row/index.html'; | ||
const componentName = 'tds-table'; | ||
const testDescription = 'tds-table-expandable-row-double-click-first'; | ||
|
||
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('double click on expand button in first row -> expanded row should be closed', async ({ | ||
page, | ||
}) => { | ||
const tableBodyRowFirstInput = page.getByRole('cell').nth(1); | ||
await tableBodyRowFirstInput.dblclick(); | ||
test('double click on expand button in first row -> expanded row should be closed', async ({ | ||
page, | ||
}) => { | ||
const tableBodyRowFirstInput = page.getByRole('cell').nth(1); | ||
await tableBodyRowFirstInput.dblclick(); | ||
|
||
const tableBodyFirstExpandableRowSlot = page.getByText(/Hello world 1/); | ||
const tableBodySecondExpandableRowSlot = page.getByText(/Hello to you too/); | ||
const tableBodyThirdExpandableRowSlot = page.getByText(/Call to action/); | ||
const tableBodyFirstExpandableRowSlot = page.getByText(/Hello world 1/); | ||
const tableBodySecondExpandableRowSlot = page.getByText(/Hello to you too/); | ||
const tableBodyThirdExpandableRowSlot = page.getByText(/Call to action/); | ||
|
||
await expect(tableBodyFirstExpandableRowSlot).toBeHidden(); | ||
await expect(tableBodySecondExpandableRowSlot).toBeHidden(); | ||
await expect(tableBodyThirdExpandableRowSlot).toBeHidden(); | ||
}); | ||
await expect(tableBodyFirstExpandableRowSlot).toBeHidden(); | ||
await expect(tableBodySecondExpandableRowSlot).toBeHidden(); | ||
await expect(tableBodyThirdExpandableRowSlot).toBeHidden(); | ||
}); | ||
}); |
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
Oops, something went wrong.