Refactor how NickelMenu is set up
All checks were successful
Build and test project / build-and-test (push) Successful in 1m32s
All checks were successful
Build and test project / build-and-test (push) Successful in 1m32s
This commit is contained in:
@@ -4,7 +4,7 @@ const { WEBROOT, WEBROOT_FIRMWARE, FIRMWARE_PATH } = require('./paths');
|
||||
|
||||
function hasNickelMenuAssets() {
|
||||
return fs.existsSync(path.join(WEBROOT, 'nickelmenu', 'NickelMenu.zip'))
|
||||
&& fs.existsSync(path.join(WEBROOT, 'nickelmenu', 'kobo-config.zip'));
|
||||
&& fs.existsSync(path.join(WEBROOT, 'nickelmenu', 'features', 'custom-menu', 'items'));
|
||||
}
|
||||
|
||||
function hasKoreaderAssets() {
|
||||
|
||||
@@ -39,7 +39,7 @@ test.describe('NickelMenu', () => {
|
||||
await expect(page.locator('#nm-config-options')).not.toBeHidden();
|
||||
|
||||
// Verify default checkbox states
|
||||
await expect(page.locator('input[name="nm-cfg-fonts"]')).toBeChecked();
|
||||
await expect(page.locator('input[name="nm-cfg-readerly-fonts"]')).toBeChecked();
|
||||
await expect(page.locator('input[name="nm-cfg-screensaver"]')).not.toBeChecked();
|
||||
await expect(page.locator('input[name="nm-cfg-simplify-tabs"]')).not.toBeChecked();
|
||||
await expect(page.locator('input[name="nm-cfg-simplify-home"]')).not.toBeChecked();
|
||||
@@ -256,8 +256,8 @@ test.describe('NickelMenu', () => {
|
||||
await expect(page.locator('#step-nm-review')).not.toBeHidden();
|
||||
await expect(page.locator('#nm-review-list')).toContainText('NickelMenu');
|
||||
await expect(page.locator('#nm-review-list')).toContainText('Readerly fonts');
|
||||
await expect(page.locator('#nm-review-list')).toContainText('Simplified tab menu');
|
||||
await expect(page.locator('#nm-review-list')).toContainText('Simplified homescreen');
|
||||
await expect(page.locator('#nm-review-list')).toContainText('Hide certain navigation tabs');
|
||||
await expect(page.locator('#nm-review-list')).toContainText('Hide certain home screen elements');
|
||||
|
||||
// Both buttons visible when device is connected
|
||||
await expect(page.locator('#btn-nm-write')).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user