Advertisement
dmimaz

Untitled

Jun 20th, 2019
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const assert = require('assert');
  2.  
  3. describe('Desktop', () => {
  4.     describe('Main page', () => {
  5.         it.skip('gepur.com page has the right title', async () => {
  6.             await browser.setWindowSize(1024, 768);
  7.             await browser.url('https://gepur.com');
  8.             const title = await browser.getTitle();
  9.             assert.equal(title, 'Интернет магазин женской одежды от производителя | Гипюр');
  10.         });
  11.         it.skip('EN.gepur.com page has the right title', async () => {
  12.             await browser.url('https://en.gepur.com');
  13.             const title = await browser.getTitle();
  14.             assert.equal(title, "Online store of women's clothing from the manufacturer | GEPUR");
  15.         });
  16.         it.skip('UA.gepur.com page has the right title', async () => {
  17.             await browser.url('https://ua.gepur.com');
  18.             const title = await browser.getTitle();
  19.             assert.equal(title, "Інтернет магазин жіночого одягу від виробника в Україні | Гіпюр");
  20.         });
  21.         // Banners at the man page, main domain
  22.         it.skip('RU. Banner "Платья" leads to the right direction', async () => {
  23.             await browser.url('https://gepur.com');
  24.             const bannerDresses= await $('[alt="gepur1"]');
  25.             await bannerDresses.click();
  26.             var link = await bannerDresses.getUrl();
  27.             await assert.equal(link, "https://gepur.com/catalog/platya?main_banner_3_200519");
  28.         });
  29.         it.skip('RU. Banner "Новинки" leads to the right direction', async () => {
  30.             await browser.url('https://gepur.com');
  31.             const bannerDresses= await $('[alt="gepur3"]');
  32.             await bannerDresses.click();
  33.             var link = await bannerDresses.getUrl();
  34.             await assert.equal(link, "https://gepur.com/catalog/novinki?main_banner_5_200519");
  35.         });
  36.         it.skip('RU. Banner "Для дома и сна" leads to the right direction', async () => {
  37.             await browser.url('https://gepur.com');
  38.             const bannerDresses= await $('[alt="gepur2"]');
  39.             await bannerDresses.click();
  40.             var link = await bannerDresses.getUrl();
  41.             await assert.equal(link, "https://gepur.com/bestidea/sweet-dreams-2018?main_banner_4_200519");
  42.         });
  43.         it.skip('RU. Banner "Коктейльный стиль" leads to the right direction', async () => {
  44.             await browser.url('https://gepur.com');
  45.             const bannerDresses= await $('[alt="gepur5"]');
  46.             await bannerDresses.click();
  47.             var link = await bannerDresses.getUrl();
  48.             await assert.equal(link, "https://gepur.com/catalog/odezhda?filters=style:vechernij?main_banner_7_200519");
  49.         });
  50.         it.skip('RU. Banner "Тренд: сафари" leads to the right direction', async () => {
  51.             await browser.url('https://gepur.com');
  52.             const bannerDresses= await $('[alt="gepur4"]');
  53.             await bannerDresses.click();
  54.             var link = await bannerDresses.getUrl();
  55.             await assert.equal(link, "https://gepur.com/bestidea/trend-safari?main_banner_6_200519");
  56.         });
  57.         // Banners at the man page, EN domain
  58.         it.skip('EN. Banner "Платья" leads to the right direction', async () => {
  59.             await browser.url('https://en.gepur.com');
  60.             const bannerDresses= await $('[alt="gepur1"]');
  61.             await bannerDresses.click();
  62.             var link = await bannerDresses.getUrl();
  63.             await assert.equal(link, "https://en.gepur.com/catalog/platya?main_banner_3_200519");
  64.         });
  65.         it.skip('EN. Banner "Новинки" leads to the right direction', async () => {
  66.             await browser.url('https://en.gepur.com');
  67.             const bannerDresses= await $('[alt="gepur3"]');
  68.             await bannerDresses.click();
  69.             var link = await bannerDresses.getUrl();
  70.             await assert.equal(link, "https://en.gepur.com/catalog/novinki?main_banner_5_200519");
  71.         });
  72.         it.skip('EN. Banner "Для дома и сна" leads to the right direction', async () => {
  73.             await browser.url('https://en.gepur.com');
  74.             const bannerDresses= await $('[alt="gepur2"]');
  75.             await bannerDresses.click();
  76.             var link = await bannerDresses.getUrl();
  77.             await assert.equal(link, "https://en.gepur.com/bestidea/sweet-dreams-2018?main_banner_4_200519");
  78.         });
  79.         it.skip('EN. Banner "Коктейльный стиль" leads to the right direction', async () => {
  80.             await browser.url('https://en.gepur.com');
  81.             const bannerDresses= await $('[alt="gepur5"]');
  82.             await bannerDresses.click();
  83.             var link = await bannerDresses.getUrl();
  84.             await assert.equal(link, "https://en.gepur.com/catalog/odezhda?filters=style:vechernij?main_banner_7_200519");
  85.         });
  86.         it.skip('EN. Banner "Тренд: сафари" leads to the right direction', async () => {
  87.             await browser.url('https://en.gepur.com');
  88.             const bannerDresses= await $('[alt="gepur4"]');
  89.             await bannerDresses.click();
  90.             var link = await bannerDresses.getUrl();
  91.             await assert.equal(link, "https://en.gepur.com/bestidea/trend-safari?main_banner_6_200519");
  92.         });
  93.                 // Banners at the man page, UA domain
  94.         it.skip('UA. Banner "Платья" leads to the right direction', async () => {
  95.             await browser.url('https://ua.gepur.com');
  96.             const bannerDresses= await $('[alt="gepur1"]');
  97.             await bannerDresses.click();
  98.             var link = await bannerDresses.getUrl();
  99.             await assert.equal(link, "https://ua.gepur.com/catalog/platya?main_banner_3_200519");
  100.         });
  101.         it.skip('UA. Banner "Новинки" leads to the right direction', async () => {
  102.             await browser.url('https://ua.gepur.com');
  103.             const bannerDresses= await $('[alt="gepur3"]');
  104.             await bannerDresses.click();
  105.             var link = await bannerDresses.getUrl();
  106.             await assert.equal(link, "https://ua.gepur.com/catalog/novinki?main_banner_5_200519");
  107.         });
  108.         it.skip('UA. Banner "Для дома и сна" leads to the right direction', async () => {
  109.             await browser.url('https://ua.gepur.com');
  110.             const bannerDresses= await $('[alt="gepur2"]');
  111.             await bannerDresses.click();
  112.             var link = await bannerDresses.getUrl();
  113.             await assert.equal(link, "https://ua.gepur.com/bestidea/sweet-dreams-2018?main_banner_4_200519");
  114.         });
  115.         it.skip('UA. Banner "Коктейльный стиль" leads to the right direction', async () => {
  116.             await browser.url('https://ua.gepur.com');
  117.             const bannerDresses= await $('[alt="gepur5"]');
  118.             await bannerDresses.click();
  119.             var link = await bannerDresses.getUrl();
  120.             await assert.equal(link, "https://ua.gepur.com/catalog/odezhda?filters=style:vechernij?main_banner_7_200519");
  121.         });
  122.         it.skip('UA. Banner "Тренд: сафари" leads to the right direction', async () => {
  123.             await browser.url('https://ua.gepur.com');
  124.             const bannerDresses= await $('[alt="gepur4"]');
  125.             await bannerDresses.click();
  126.             var link = await bannerDresses.getUrl();
  127.             await assert.equal(link, "https://ua.gepur.com/bestidea/trend-safari?main_banner_6_200519");
  128.         });
  129.     });
  130. });
Advertisement
RAW Paste Data Copied
Advertisement