Skip to content

Commit

Permalink
Merge pull request #196 from jpwhite4/job_search_realm
Browse files Browse the repository at this point in the history
Add tests to confirm ubcc/xdmod#1092
  • Loading branch information
jpwhite4 authored Oct 8, 2019
2 parents 9d038c3 + 15cefeb commit 2fe641e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/automated_tests/test/specs/jobViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,27 @@ describe('Job Viewer', function jobViewer() {
me.clickLogoAndWaitForMask();
});
});

describe('Basic search with conflicting settings in advanced search dialog box', function () {
var saveSearchName = 'AUTOTEST cross realm ' + new Date();
it('Click the search button', function jvClickBeginSearch() {
browser.waitAndClick(selectors.search.button);
});
it('Select non-supremm realm in advanced search box', function () {
browser.click(selectors.search.advanced.realm);
browser.waitAndClick(selectors.extComboListByName('Jobs'));
});
it('Perform a basic search', function jvPerformSearch() {
jV.performSearch(6118004, saveSearchName, 'robertson', true);
});
it('View saved job then delete it.', function () {
var jobIdent = 'robertson-6118004';
jV.viewSaveJob(jobIdent, saveSearchName);
browser.waitUntilAnimEndAndClick(selectors.history.tree.searchnode(saveSearchName), 'right');
jV.performDelete(jobIdent);
me.clickLogoAndWaitForMask();
});
});
});

describe('Advanced Search', function () {
Expand Down
3 changes: 3 additions & 0 deletions tests/automated_tests/test/specs/jobViewer.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class JobViewer {
resource_dropdown: '//input[@id="basic-resource"]/../img[contains(@class,"x-form-arrow-trigger")]'
},
advanced: {
realm: '//input[@id="realm-field"]/../img[contains(@class,"x-form-arrow-trigger")]',
filters: '//input[@id="search-field"]/../img[contains(@class,"x-form-arrow-trigger")]',
values: '//input[@id="search-value"]/../img[contains(@class,"x-form-arrow-trigger")]'
},
Expand Down Expand Up @@ -144,6 +145,8 @@ class JobViewer {
browser.waitAndSet('#search_start_date', '2016-12-30');
browser.waitAndSet('#search_end_date', '2017-01-02');
browser.waitAndSet('#job-viewer-search-name', saveSearchName, true, false);
browser.click(this.selectors.search.advanced.realm);
browser.waitAndClick(this.selectors.extComboListByName('SUPREMM'));
browser.click(this.selectors.search.advanced.filters);
browser.waitAndClick(this.selectors.extComboListByName('Job Size'));
browser.click(this.selectors.search.advanced.values);
Expand Down

0 comments on commit 2fe641e

Please sign in to comment.