{"size": 7860, "ext": "js", "max_stars_repo_path": "e2e-tests/nightwatch/tests/Screenshots 07 Media and marketing.test.js", "max_stars_repo_name": "CSSSR/csssr.com", "max_stars_repo_stars_event_min_datetime": "2020-07-06T11:51:24.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-24T22:07:34.000Z", "max_issues_repo_path": "e2e-tests/nightwatch/tests/Screenshots 07 Media and marketing.test.js", "max_issues_repo_name": "CSSSR/csssr.com", "max_issues_repo_issues_event_min_datetime": "2020-07-06T07:29:10.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-24T08:06:21.000Z", "max_forks_repo_path": "e2e-tests/nightwatch/tests/Screenshots 07 Media and marketing.test.js", "max_forks_repo_name": "CSSSR/csssr.com", "max_forks_repo_forks_event_min_datetime": "2021-03-01T02:18:39.000Z", "max_forks_repo_forks_event_max_datetime": "2021-03-22T07:40:58.000Z"}
{"max_stars_count": 8, "max_issues_count": 116, "max_forks_count": 2, "avg_line_length": 42.4864864865, "max_line_length": 122, "alphanum_fraction": 0.6750636132}
// Screenshots of the entire Media&Marketing page for the EN locale

const pages = require("./data/pages")
const general = require("./selectors/general")
const header = require("./selectors/header")
const footer = require('./selectors/footer')

testcase('Media&Marketing 1920 En', () => {
  step('Go to page Media&Marketing', () => {
    browser
      .setWindowSize(1920, 8000)
      .url(`${browser.launch_url}${pages.enLocal.url}${pages.mediaAndMarketing.url}`)
      .waitForElementPresent(header.block.header)
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.bubbleButton"]').style = "display: none;"
      })
  })

  expected('Full page screenshot of Media&Marketing 1920 EN', () => {
    browser.assert.screenshotElement(general.block.main, 'Media&Marketing 1920 EN',
      { hideSelectors: [footer.block.footer, footer.block.bottomContent, general.button.contactUs, header.block.header] })
  })
})

testcase(' Media&Marketing 1360 En', () => {
  step('Go to page Media&Marketing', () => {
    browser
      .setWindowSize(1360, 8000)
      .url(`${browser.launch_url}${pages.enLocal.url}${pages.mediaAndMarketing.url}`)
      .waitForElementPresent(header.block.header)
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.bubbleButton"]').style = "display: none;"
      })
  })

  expected('Full page screenshot of Media&Marketing 1360 EN', () => {
    browser.assert.screenshotElement(general.block.main, 'Media&Marketing 1360 EN',
      { hideSelectors: [footer.block.footer, footer.block.bottomContent, general.button.contactUs, header.block.header] })
  })
})

testcase(' Media&Marketing 1280 En', () => {
  step('Go to page  Media&Marketing', () => {
    browser
      .setWindowSize(1280, 7500)
      .url(`${browser.launch_url}${pages.enLocal.url}${pages.mediaAndMarketing.url}`)
      .waitForElementPresent(header.block.header)
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.bubbleButton"]').style = "display: none;"
      })
  })

  expected('Full page screenshot of Media&Marketing 1280 EN', () => {
    browser.assert.screenshotElement(general.block.main, 'Media&Marketing 1280 EN',
      { hideSelectors: [footer.block.footer, footer.block.bottomContent, general.button.contactUs, header.block.header] })
  })
})

testcase(' Media&Marketing 1024 En', () => {
  step('Go to page  Media&Marketing', () => {
    browser
      .setWindowSize(1024, 5700)
      .url(`${browser.launch_url}${pages.enLocal.url}${pages.mediaAndMarketing.url}`)
      .waitForElementPresent(header.block.header)
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.bubbleButton"]').style = "display: none;"
      })
  })

  expected('Full page screenshot of Media&Marketing 1024 EN', () => {
    browser.assert.screenshotElement(general.block.main, 'Media&Marketing 1024 EN',
      { hideSelectors: [footer.block.footer, footer.block.bottomContent, general.button.contactUs, header.block.header] })
  })
})

testcase(' Media&Marketing 360 En', () => {
  step('Go to page  Media&Marketing', () => {
    browser
      .setWindowSize(360, 7400)
      .url(`${browser.launch_url}${pages.enLocal.url}${pages.mediaAndMarketing.url}`)
      .waitForElementPresent(header.block.header)
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.idea"]').style = "display: none;"
      })
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.bubbleButton"]').style = "display: none;"
      })
  })

  expected('Full page screenshot of Media&Marketing 360 EN', () => {
    browser.assert.screenshotElement(general.block.main, 'Media&Marketing 360 EN',
      { hideSelectors: [footer.block.footer, footer.block.bottomContent, general.button.contactUs, header.block.header] })
  })
})

// Screenshots of the entire Media&Marketing page for the RU locale

testcase('Media and Marketing Industries 1920 RU', () => {
  step('Go to page Media and Marketing Industries', () => {
    browser
      .setWindowSize(1920, 8000)
      .url(`${browser.launch_url}${pages.ruLocal.url}${pages.mediaAndMarketing.url}`)
      .waitForElementPresent(header.block.header)
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.bubbleButton"]').style = "display: none;"
      })
  })

  expected('Full page screenshot of Media and Marketing Industries на 1920 RU', () => {
    browser.assert.screenshotElement(general.block.main, 'Media&Marketing 1920 RU',
      { hideSelectors: [footer.block.footer, footer.block.bottomContent, general.button.contactUs, header.block.header] })
  })
})

testcase('Media and Marketing Industries 1360 RU', () => {
  step('Go to page Media and Marketing Industries', () => {
    browser
      .setWindowSize(1360, 8000)
      .url(`${browser.launch_url}${pages.ruLocal.url}${pages.mediaAndMarketing.url}`)
      .waitForElementPresent(header.block.header)
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.bubbleButton"]').style = "display: none;"
      })
  })

  expected('Full page screenshot of Media and Marketing Industries на 1360 RU', () => {
    browser.assert.screenshotElement(general.block.main, 'Media&Marketing 1360 RU',
      { hideSelectors: [footer.block.footer, footer.block.bottomContent, general.button.contactUs, header.block.header] })
  })
})

testcase('Media and Marketing Industries 1280 RU', () => {
  step('Go to page Media and Marketing Industries', () => {
    browser
      .setWindowSize(1280, 7500)
      .url(`${browser.launch_url}${pages.ruLocal.url}${pages.mediaAndMarketing.url}`)
      .waitForElementPresent(header.block.header)
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.bubbleButton"]').style = "display: none;"
      })
  })

  expected('Full page screenshot of Media and Marketing Industries на 1280 RU', () => {
    browser.assert.screenshotElement(general.block.main, 'Media&Marketing 1280 RU',
      { hideSelectors: [footer.block.footer, footer.block.bottomContent, general.button.contactUs, header.block.header] })
  })
})

testcase('Media and Marketing Industries 1024 RU', () => {
  step('Go to page Media and Marketing Industries', () => {
    browser
      .setWindowSize(1024, 5700)
      .url(`${browser.launch_url}${pages.ruLocal.url}${pages.mediaAndMarketing.url}`)
      .waitForElementPresent(header.block.header)
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.bubbleButton"]').style = "display: none;"
      })
  })

  expected('Full page screenshot of Media and Marketing Industries на 1024 RU', () => {
    browser.assert.screenshotElement(general.block.main, 'Media&Marketing 1024 RU',
      { hideSelectors: [footer.block.footer, footer.block.bottomContent, general.button.contactUs, header.block.header] })
  })
})

testcase('Media and Marketing Industries 360 RU', () => {
  step('Go to page Media and Marketing Industries', () => {
    browser
      .setWindowSize(360, 7400)
      .url(`${browser.launch_url}${pages.ruLocal.url}${pages.mediaAndMarketing.url}`)
      .waitForElementPresent(header.block.header)
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.idea"]').style = "display: none;"
      })
      .execute(() => {
        return document.querySelector('[data-testid="projects:block.bubbleButton"]').style = "display: none;"
      })
  })

  expected('Full page screenshot of Media and Marketing Industries на 360 RU', () => {
    browser.assert.screenshotElement(general.block.main, 'Media&Marketing 360 RU',
      { hideSelectors: [footer.block.footer, footer.block.bottomContent, general.button.contactUs, header.block.header] })
  })
})
