Skip to content

Commit

Permalink
Percy snapshots added to integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Apr 18, 2023
1 parent 50cf21e commit 2460213
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ui/tests/integration/components/job-status-panel-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import hbs from 'htmlbars-inline-precompile';
import { startMirage } from 'nomad-ui/initializers/ember-cli-mirage';
import { initialize as fragmentSerializerInitializer } from 'nomad-ui/initializers/fragment-serializer';
import { componentA11yAudit } from 'nomad-ui/tests/helpers/a11y-audit';
import percySnapshot from '@percy/ember';

module(
'Integration | Component | job status panel | active deployment',
Expand Down Expand Up @@ -320,6 +321,10 @@ module(
'25 Running 0 Complete'
);

await percySnapshot(
"Job Status Panel: 'New' and 'Previous' allocations, initial deploying state"
);

// Try setting a few of the old allocs to complete and make sure number ticks down
await Promise.all(
this.get('job.allocations')
Expand Down Expand Up @@ -368,6 +373,10 @@ module(
'20 Running 5 Complete'
);

await percySnapshot(
"Job Status Panel: 'New' and 'Previous' allocations, some old marked complete"
);

await componentA11yAudit(
this.element,
assert,
Expand Down

0 comments on commit 2460213

Please sign in to comment.