mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
update selector for source code e2e test
This commit is contained in:
parent
6a5c2e5377
commit
a02dbc099e
@ -53,7 +53,7 @@ test.describe('addon-docs', () => {
|
||||
// Click on the third button which has the text "Show code"
|
||||
const showCodeButton = (await root.locator('button', { hasText: 'Show Code' }).all())[2];
|
||||
await showCodeButton.click();
|
||||
const sourceCode = root.locator('.language-html');
|
||||
const sourceCode = root.locator('.language-jsx');
|
||||
await expect(sourceCode.textContent()).resolves.toMatchSnapshot();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user