|
|
@@ -24,10 +24,10 @@ describe('Dashboard Module', () => {
|
|
|
});
|
|
|
|
|
|
it('Show test unit sensors!', async () => {
|
|
|
- expect(await dashboardPo.xpathIsVisible('//h4[contains(text(), \'test sensor Temp\')]')).toEqual(false);
|
|
|
+ expect(await dashboardPo.xpathIsVisible('//h5[contains(text(), \'test sensor Temp\')]')).toEqual(false);
|
|
|
await dashboardPo.clickToAccordionTab();
|
|
|
await browser.sleep(500);
|
|
|
- expect(await dashboardPo.xpathIsVisible('//h4[contains(text(), \'test sensor Temp\')]')).toEqual(true);
|
|
|
+ expect(await dashboardPo.xpathIsVisible('//h5[contains(text(), \'test sensor Temp\')]')).toEqual(true);
|
|
|
});
|
|
|
|
|
|
it('Add unit ' + today + ' !', async () => {
|
|
|
@@ -38,7 +38,7 @@ describe('Dashboard Module', () => {
|
|
|
});
|
|
|
|
|
|
it('Added unit ' + today + ' shown!', async () => {
|
|
|
- expect(await dashboardPo.xpathIsVisible('//h3[contains(text(), \''+ today +'\')]')).toEqual(true);
|
|
|
+ expect(await dashboardPo.xpathIsVisible('//h4[contains(text(), \''+ today +'\')]')).toEqual(true);
|
|
|
});
|
|
|
|
|
|
it('Unit ' + today + ' manipulation buttons test!', async () => {
|
|
|
@@ -60,7 +60,7 @@ describe('Dashboard Module', () => {
|
|
|
await dashboardPo.setUnitDescription('//input', today);
|
|
|
await dashboardPo.clickByXpath('//span[contains(text(), \'Save\')]');
|
|
|
expect(await navBarPo.success()).toEqual(true);
|
|
|
- expect(await dashboardPo.xpathIsVisible('//h3[contains(text(), \''+ today +'\')]')).toEqual(true);
|
|
|
+ expect(await dashboardPo.xpathIsVisible('//h4[contains(text(), \''+ today +'\')]')).toEqual(true);
|
|
|
});
|
|
|
|
|
|
it('Insert position!', async () => {
|
|
|
@@ -69,7 +69,7 @@ describe('Dashboard Module', () => {
|
|
|
await dashboardPo.fillPosition();
|
|
|
await dashboardPo.clickByXpath('//span[contains(text(), \'Save\')]');
|
|
|
expect(await navBarPo.success()).toEqual(true);
|
|
|
- expect(await dashboardPo.xpathIsVisible('//h3[contains(text(), \''+ today +'\')]')).toEqual(true);
|
|
|
+ expect(await dashboardPo.xpathIsVisible('//h4[contains(text(), \''+ today +'\')]')).toEqual(true);
|
|
|
});
|
|
|
|
|
|
it('Add sensor!', async () => {
|
|
|
@@ -88,10 +88,10 @@ describe('Dashboard Module', () => {
|
|
|
await browser.sleep(1000);
|
|
|
expect(await navBarPo.success()).toEqual(true);
|
|
|
await browser.sleep(5000);
|
|
|
- expect(await dashboardPo.xpathIsVisible('//h3[contains(text(), \''+ sensor +'\')]')).toEqual(true);
|
|
|
+ expect(await dashboardPo.xpathIsVisible('//h4[contains(text(), \''+ sensor +'\')]')).toEqual(true);
|
|
|
await dashboardPo.clickToAccordionTabByXpath('(.//a[contains(@class, \'p-accordion-header-link\')])[last()]');
|
|
|
await browser.sleep(500);
|
|
|
- expect(await dashboardPo.xpathIsVisible('//h4[contains(text(), \''+ sensor +'\')]')).toEqual(true);
|
|
|
+ expect(await dashboardPo.xpathIsVisible('//h5[contains(text(), \''+ sensor +'\')]')).toEqual(true);
|
|
|
});
|
|
|
|
|
|
it('Edit sensor!', async () => {
|
|
|
@@ -105,7 +105,7 @@ describe('Dashboard Module', () => {
|
|
|
await dashboardPo.clickByXpath('//span[contains(text(), \'Save\')]');
|
|
|
await browser.sleep(1000);
|
|
|
expect(await navBarPo.success()).toEqual(true);
|
|
|
- expect(await dashboardPo.xpathIsVisible('//h4[contains(text(), \''+ sensor +'_test\')]')).toEqual(true);
|
|
|
+ expect(await dashboardPo.xpathIsVisible('//h5[contains(text(), \''+ sensor +'_test\')]')).toEqual(true);
|
|
|
});
|
|
|
|
|
|
it('Delete sensor!', async () => {
|
|
|
@@ -118,7 +118,7 @@ describe('Dashboard Module', () => {
|
|
|
await dashboardPo.clickByXpath('//span[contains(text(), \'Yes\')]');
|
|
|
await browser.sleep(1000);
|
|
|
expect(await navBarPo.success()).toEqual(true);
|
|
|
- expect(await element(by.xpath('//h4[contains(text(), \''+ sensor +'\')]')).isPresent()).toEqual(false);
|
|
|
+ expect(await element(by.xpath('//h5[contains(text(), \''+ sensor +'\')]')).isPresent()).toEqual(false);
|
|
|
});
|
|
|
|
|
|
it('Delete unit!', async () => {
|
|
|
@@ -128,6 +128,6 @@ describe('Dashboard Module', () => {
|
|
|
await dashboardPo.clickByXpath('//span[contains(text(), \'Yes\')]');
|
|
|
await browser.sleep(1000);
|
|
|
expect(await navBarPo.success()).toEqual(true);
|
|
|
- expect(await element(by.xpath('//h3[contains(text(), \''+ today +'\')]')).isPresent()).toEqual(false);
|
|
|
+ expect(await element(by.xpath('//h4[contains(text(), \''+ today +'\')]')).isPresent()).toEqual(false);
|
|
|
});
|
|
|
});
|