trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mitchell...@apache.org
Subject [trafficcontrol] branch master updated: Add waits on generate keys buttons to show up in TP tests (#4205)
Date Mon, 06 Jan 2020 15:06:27 GMT
This is an automated email from the ASF dual-hosted git repository.

mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new df7ff48  Add waits on generate keys buttons to show up in TP tests (#4205)
df7ff48 is described below

commit df7ff489d8b72f7391586123befed263db65e210
Author: Michael Hoppal <54542891+mhoppa@users.noreply.github.com>
AuthorDate: Mon Jan 6 08:06:17 2020 -0700

    Add waits on generate keys buttons to show up in TP tests (#4205)
    
    * Add waits on generate keys buttons to show up in TP tests
    
    * Use const instead of var
---
 traffic_portal/test/end_to_end/CDNs/cdns-spec.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/traffic_portal/test/end_to_end/CDNs/cdns-spec.js b/traffic_portal/test/end_to_end/CDNs/cdns-spec.js
index acd9a06..f1c5d90 100644
--- a/traffic_portal/test/end_to_end/CDNs/cdns-spec.js
+++ b/traffic_portal/test/end_to_end/CDNs/cdns-spec.js
@@ -27,6 +27,7 @@ describe('Traffic Portal CDNs Test Suite', function() {
 	const myDomainName = myNewCDN + '.com';
 	const mydnssec = false;
 	const myKskDays = commonFunctions.random(365);
+	const ec = protractor.ExpectedConditions;
 
 	it('should go to the CDNs page', function() {
 		console.log("Go to the CDNs page");
@@ -81,6 +82,7 @@ describe('Traffic Portal CDNs Test Suite', function() {
 		console.log("Generating DNSSEC keys for the new CDN and and verifying their expiration
date");
 		await pageData.moreButton.click();
 		await pageData.manageDnssecKeysButton.click();
+		browser.wait(ec.presenceOf(pageData.expirationDate), 5000)
 		expect(pageData.expirationDate.getAttribute('value')).toEqual('');
 		await pageData.generateDnssecKeysButton.click();
 		await pageData.regenerateButton.click();
@@ -95,6 +97,7 @@ describe('Traffic Portal CDNs Test Suite', function() {
 
 	it('should regenerate DNSSEC keys', async function() {
 		console.log("Renerating DNSSEC keys and verifying their expiration date");
+		browser.wait(ec.presenceOf(pageData.regenerateDnssecKeysButton), 5000)
 		await pageData.regenerateDnssecKeysButton.click();
 		await pageData.kskExpirationDays.clear().sendKeys(myKskDays.toString());
 		await pageData.regenerateButton.click();
@@ -109,6 +112,7 @@ describe('Traffic Portal CDNs Test Suite', function() {
 
 	it('should regenerate KSK keys', async function() {
 		console.log("Regenerating KSK keys and verifying their expiration");
+		browser.wait(ec.presenceOf(pageData.regenerateKskButton), 5000)
 		await pageData.regenerateKskButton.click();
 		await pageData.kskExpirationDays.clear().sendKeys(myKskDays.toString());
 		await pageData.generateButton.click();


Mime
View raw message