Initial curated chimera source from a8ae5b1db07fb49926c94585e2718e5130330974
This commit is contained in:
commit
c737a37f71
531 files changed
+119270
No files matched your search
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const assert = require('node:assert/strict');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const test = require('node:test');
|
||||
|
||||
test('every game detail tab and panel has a bidirectional accessible relationship', () => {
|
||||
const html = fs.readFileSync(path.resolve(__dirname, '../../renderer/index.html'), 'utf8');
|
||||
const tabs = ['info', 'copies', 'packages', 'patches', 'compatibility', 'saves', 'trophies', 'media', 'activity', 'dlc', 'regions', 'manage', 'cheats'];
|
||||
|
||||
for (const name of tabs) {
|
||||
assert.match(html, new RegExp(`id="modal-tab-${name}"[^>]+aria-controls="mpanel-${name}"`));
|
||||
assert.match(html, new RegExp(`id="mpanel-${name}"[^>]+aria-labelledby="modal-tab-${name}"`));
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user