Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var env = require('../../environment.js');
- var data = require("../../fixtures/mock_RXSITEINFO.json");
- var tower = data.rxinfo[0];
- var EC = protractor.ExpectedConditions;
- console.log("Testing with tower", tower.rxname);
- describe('config page for tower', function() {
- beforeAll(function() {
- browser.get(env.baseUrl + 'config/tower/' + tower.uid);
- });
- it('should populate the name of the tower in the header', function() {
- var angularElement = element(by.binding('activeTower.rxname'));
- browser.wait(EC.presenceOf(angularElement), 30*1000);
- expect(angularElement.getText()).toContain(tower.rxname);
- });
- it('should populate the name of the tower in the input box', function() {
- var angularElement = element(by.model('tempTower.rxname'));
- browser.wait(EC.presenceOf(angularElement), 30*1000);
- expect(angularElement.getAttribute('value')).toEqual(tower.rxname);
- });
- it('should list the base stations attached', function() {
- browser.get(env.baseUrl + 'config/tower/' + tower.uid);
- var bsts = element.all(by.repeater('data in towerBsts'));
- browser.wait(EC.presenceOf(bsts), 30*1000);
- expect(bsts.count()).toEqual(tower.bslist.length);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement