update selector for source code e2e test

This commit is contained in:
Yann Braga 2023-04-14 10:16:33 +02:00
parent 6a5c2e5377
commit a02dbc099e

View File

@ -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();
});