text: 'use strict';
  
  module.exports = {
      '@tags': ['a11y'],
  
      'initially doesn’t add `application` role in list mode': (browser) => {
          browser.url(`${browser.launchUrl}/list`);
          browser.assert.attributeEquals('.shower', 'role', null);
          browser.end();
      },
  
      'removes `application` role when switched to `list` mode': (browser) => {
          browser.url(`${browser.launchUrl}/full`);
          browser.sendKeys('.send-keys', browser.Keys.ESCAPE);
          browser.assert.attributeEquals('.shower', 'role', null);
          browser.end();
      },
  
      'initially adds `application` role in full screen mode': (browser) => {
          browser.url(`${browser.launchUrl}/full`);
          browser.assert.attributeEquals('.shower', 'role', 'application');
          browser.end();
      },
  
      'adds `application` role when switched to `full` mode': (browser) => {
          browser.url(`${browser.launchUrl}/list`);
          browser.click('[id="1"]');
          browser.assert.attributeEquals('.shower', 'role', 'application');
          browser.end();
      },
  
      'initially sets live region in `list` mode': (browser) => {
          browser.url(`${browser.launchUrl}/list#3`);
          browser.assert.containsText('.region h2', '3');
          browser.end();
      },
  
      'initially sets live region in `full` mode': (browser) => {
          browser.url(`${browser.launchUrl}/full#2`);
          browser.assert.containsText('.region h2', '2');
          browser.end();
      },
  
      'updates live region when moving forwards in `list` mode': (browser) => {
          browser.url(`${browser.launchUrl}/list#1`);
          browser.assert.containsText('.region h2', '1');
          browser.sendKeys('.send-keys', browser.Keys.ARROW_RIGHT);
          browser.assert.containsText('.region h2', '2');
          browser.sendKeys('.send-keys', browser.Keys.ARROW_RIGHT);
          browser.assert.containsText('.region h2', '3');
          browser.end();
      },
  
      'updates live region when moving backwards in `list` mode': (browser) => {
          browser.url(`${browser.launchUrl}/list#3`);
          browser.assert.containsText('.region h2', '3');
          browser.sendKeys('.send-keys', browser.Keys.ARROW_LEFT);
          browser.assert.containsText('.region h2', '2');
          browser.sendKeys('.send-keys', browser.Keys.ARROW_LEFT);
          browser.assert.containsText('.region h2', '1');
          browser.end();
      },
  
      'updates live region when moving forwards in `full` mode': (browser) => {
          browser.url(`${browser.launchUrl}/full#1`);
          browser.assert.containsText('.region h2', '1');
          browser.sendKeys('.send-keys', browser.Keys.ARROW_RIGHT);
          browser.assert.containsText('.region h2', '2');
          browser.sendKeys('.send-keys', browser.Keys.ARROW_RIGHT);
          browser.assert.containsText('.region h2', '3');
          browser.end();
      },
  
      'updates live region when moving backwards in `full` mode': (browser) => {
          browser.url(`${browser.launchUrl}/full#3`);
          browser.assert.containsText('.region h2', '3');
          browser.sendKeys('.send-keys', browser.Keys.ARROW_LEFT);
          browser.assert.containsText('.region h2', '2');
          browser.sendKeys('.send-keys', browser.Keys.ARROW_LEFT);
          browser.assert.containsText('.region h2', '1');
          browser.end();
      },
  };
  