diff --git a/tests/vitest/os-settings-about-theme.test.ts b/tests/vitest/os-settings-about-theme.test.ts index 6e71e864..73d5b85b 100644 --- a/tests/vitest/os-settings-about-theme.test.ts +++ b/tests/vitest/os-settings-about-theme.test.ts @@ -14,7 +14,8 @@ import { describe, expect, test } from 'vitest'; const root = join( __dirname, '../..' ); const css = readFileSync( join( root, 'assets/css/os-settings.css' ), 'utf8' ); const aboutStart = css.indexOf( '/*\n * About tab' ); -const aboutEnd = css.indexOf( '/* Apps & Icons section', aboutStart ); +const nextSection = css.indexOf( '\n/*', aboutStart + 1 ); +const aboutEnd = -1 === nextSection ? css.length : nextSection; const aboutCss = css.slice( aboutStart, aboutEnd ); describe( 'OS Settings — About theme contract', () => {