-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(atomic): fix no-results test for folded children results (#4409)
- Loading branch information
1 parent
7c110bc
commit bc04659
Showing
8 changed files
with
200 additions
and
139 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
"ARROWUP", | ||
"Artemia", | ||
"Artemiidae", | ||
"atlcontinentantarctica", | ||
"attachtocase", | ||
"azerty", | ||
"bazz", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
10 changes: 10 additions & 0 deletions
10
...onents/search/result-lists/atomic-folded-result-list/e2e/atomic-folded-result-list.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,10 @@ | ||
import {test, expect} from './fixture'; | ||
|
||
// TODO: KIT-3546 - Make this test pass | ||
test.describe('When no child results', () => { | ||
test.fixme('should show a "no results" label', async ({foldedResultList}) => { | ||
await foldedResultList.load({story: 'with-no-result-children'}); | ||
await foldedResultList.loadAllResultsButton.click(); | ||
await expect(foldedResultList.noResultsLabel.first()).toBeVisible(); | ||
}); | ||
}); |
19 changes: 19 additions & 0 deletions
19
packages/atomic/src/components/search/result-lists/atomic-folded-result-list/e2e/fixture.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,19 @@ | ||
import {test as base} from '@playwright/test'; | ||
import { | ||
AxeFixture, | ||
makeAxeBuilder, | ||
} from '../../../../../../playwright-utils/base-fixture'; | ||
import {AtomicFoldedResultListPageObject as FoldedResultList} from './page-object'; | ||
|
||
type Fixture = { | ||
foldedResultList: FoldedResultList; | ||
}; | ||
|
||
export const test = base.extend<Fixture & AxeFixture>({ | ||
makeAxeBuilder, | ||
foldedResultList: async ({page}, use) => { | ||
await use(new FoldedResultList(page)); | ||
}, | ||
}); | ||
|
||
export {expect} from '@playwright/test'; |
Oops, something went wrong.