Skip to content

Commit

Permalink
Fixed some test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Metzgar committed Jun 13, 2019
1 parent 76564f7 commit 374b304
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
10 changes: 5 additions & 5 deletions client/test/execution.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ describe('Execution', function() {

scenario.withFullHistory(opts.events)

var summaryEl = await scenario.render(opts.attach).waitUntilExists('section.execution section.execution-summary')
return [summaryEl, scenario]
var summaryEl = await scenario.render(opts.attach).waitUntilExists('section.execution section.execution-summary dl')
return [summaryEl.parentElement, scenario]
}

const closedWorkflowExecution = {
Expand Down Expand Up @@ -59,8 +59,8 @@ describe('Execution', function() {
'/domain/ci-test/workflows/email-daily-summaries/emailRun1/stack-trace',
'/domain/ci-test/workflows/email-daily-summaries/emailRun1/queries'
])
scenario.vm.$el.querySelector('section.execution > nav a.stack-trace').should.be.displayed
scenario.vm.$el.querySelector('section.execution > nav a.queries').should.be.displayed
scenario.vm.$el.querySelector('section.execution > nav a.stack-trace').should.not.have.property("display", "none")
scenario.vm.$el.querySelector('section.execution > nav a.queries').should.not.have.property("display", "none")
})

describe('Summary', function() {
Expand All @@ -79,7 +79,7 @@ describe('Execution', function() {
summaryEl.should.not.have.descendant('.pending-activities')
summaryEl.should.not.have.descendant('.parent-workflow')
summaryEl.querySelector('.workflow-status dd').should.contain.text('running')
summaryEl.querySelector('.workflow-status loader.bar').should.be.displayed
summaryEl.querySelector('.workflow-status loader.bar').should.not.have.property("display", "none")
})

it('should show the input of the workflow, and any pending events', async function () {
Expand Down
16 changes: 14 additions & 2 deletions server/test/domain.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ describe('Describe Domain', function() {
status: 'REGISTERED',
description: 'domain for running CI tests',
ownerEmail: 'cadence-dev@uber.com',
data: null
data: null,
uuid: null
},
isGlobalDomain: false,
failoverVersion: 0,
configuration: {
archivalBucketName: null,
archivalBucketOwner: null,
archivalRetentionPeriodInDays: null,
archivalStatus: null,
badBinaries: null,
emitMetric: false,
workflowExecutionRetentionPeriodInDays: 14
},
Expand Down Expand Up @@ -39,11 +45,17 @@ describe('Describe Domain', function() {
status: 'REGISTERED',
description: 'ci test domain',
ownerEmail: null,
data: {}
data: {},
uuid: null
},
failoverVersion: 0,
isGlobalDomain: true,
configuration: {
archivalBucketName: null,
archivalBucketOwner: null,
archivalRetentionPeriodInDays: null,
archivalStatus: null,
badBinaries: null,
workflowExecutionRetentionPeriodInDays: 14,
emitMetric: true
},
Expand Down
14 changes: 14 additions & 0 deletions server/test/history.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,22 @@ wfHistoryThrift = [{
childPolicy: 'TERMINATE',
expirationTimestamp: null,
continuedExecutionRunId: null,
continuedFailureDetails: null,
continuedFailureReason: null,
cronSchedule: null,
firstDecisionTaskBackoffSeconds: null,
firstExecutionRunId: null,
header: null,
initiator: null,
lastCompletionResult: null,
memo: null,
originalExecutionRunId: null,
parentInitiatedEventId: null,
parentWorkflowDomain: null,
parentWorkflowExecution: null,
prevAutoResetPoints: null,
retryPolicy: null,
searchAttributes: null,
taskStartToCloseTimeoutSeconds: 30,
executionStartToCloseTimeoutSeconds: 1080
}
Expand Down Expand Up @@ -119,6 +131,7 @@ describe('Workflow History', function() {
.expect(200)
.expect('Content-Type', /json/)
.expect({
archived: null,
history: { events: [] },
nextPageToken: 'cGFnZTM='
})
Expand Down Expand Up @@ -150,6 +163,7 @@ describe('Workflow History', function() {
.get('/api/domain/canary/workflows/ci%2Fdemo/run1/history')
.expect(200)
.expect({
archived: null,
history: { events: wfHistoryJson },
nextPageToken: 'cGFnZTI='
})
Expand Down
8 changes: 7 additions & 1 deletion server/test/workflows.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ describe('Listing Workflows', function() {
startTime: dateToLong('2017-11-10T21:30:00.000Z'),
closeTime: null,
closeStatus: null,
historyLength: null
historyLength: null,
autoResetPoints: null,
executionTime: null,
memo: null,
parentDomainId: null,
parentExecution: null,
searchAttributes: null
},
demoExecJson = Object.assign({}, demoExecThrift, {
startTime: '2017-11-10T21:30:00.000Z',
Expand Down

0 comments on commit 374b304

Please sign in to comment.