module.exports = {
  ci: {
    collect: {
      settings: {
        preset: 'desktop',
        chromeFlags: '--no-sandbox --disable-dev-shm-usage'
      },
      url: [
        'http://localhost:5000/AppStream/clickme/#/home/tables',
        'http://localhost:5000/AppStream/clickme/#/editor/DC996664.MPE_X_TEST',
        'http://localhost:5000/AppStream/clickme/#/view/data',
        'http://localhost:5000/AppStream/clickme/#/view/data/DC996664',
        'http://localhost:5000/AppStream/clickme/#/view/data/DC996664.MPE_X_TEST',
        'http://localhost:5000/AppStream/clickme/#/view/usernav/groups',
        'http://localhost:5000/AppStream/clickme/#/view/usernav/groups',
        'http://localhost:5000/AppStream/clickme/#/view/usernav/groups/1',
        'http://localhost:5000/AppStream/clickme/#/view/usernav/users/1',
        'http://localhost:5000/AppStream/clickme/#/home/excel-maps',
        'http://localhost:5000/AppStream/clickme/#/home/excel-maps/BASEL-CR2',
        'http://localhost:5000/AppStream/clickme/#/home/multi-load',
        'http://localhost:5000/AppStream/clickme/#/review/submitted',
        'http://localhost:5000/AppStream/clickme/#/review/approve',
        'http://localhost:5000/AppStream/clickme/#/review/history',
        'http://localhost:5000/AppStream/clickme/#/stage/DC20221006T142649516_059582_7169',
        'http://localhost:5000/AppStream/clickme/#/review/submitted/DC20221006T142649516_059582_7169',
        'http://localhost:5000/AppStream/clickme/#/system'
      ]
    },
    assert: {
      assertions: {
        'categories:accessibility': [
          'error',
          { minScore: 1, aggregationMethod: 'median' }
        ],
        'categories:performance': [
          'error',
          { minScore: 0.4, aggregationMethod: 'median' }
        ]
      }
    },
    upload: {
      target: 'filesystem',
      outputDir: './lighthouse-reports'
    }
  }
}
