diff --git a/test/document-util.test.js b/test/document-util.test.js index 5f2e49ea8b..109345d110 100644 --- a/test/document-util.test.js +++ b/test/document-util.test.js @@ -114,7 +114,7 @@ const test = createDomTest(path.join(dirname, 'data/html/document-util.html')); describe('DocumentUtil', () => { test('Text scanning functions', ({window}) => { const {document} = window; - for (const testElement of /** @type {NodeListOf} */ (document.querySelectorAll('.test[data-test-type=scan]'))) { + for (const testElement of /** @type {NodeListOf} */ (document.querySelectorAll('test-case[data-test-type=scan]'))) { // Get test parameters const { elementFromPointSelector, @@ -231,7 +231,7 @@ describe('DocumentUtil', () => { describe('DOMTextScanner', () => { test('Seek functions', async ({window}) => { const {document} = window; - for (const testElement of /** @type {NodeListOf} */ (document.querySelectorAll('.test[data-test-type=text-source-range-seek]'))) { + for (const testElement of /** @type {NodeListOf} */ (document.querySelectorAll('test-case[data-test-type=text-source-range-seek]'))) { // Get test parameters const { seekNodeSelector,