Skip to content

Commit fe12e26

Browse files
committed
Fixes #148 - Add SLA explanation to user documentation
1 parent 2acc18b commit fe12e26

File tree

6 files changed

+277
-92
lines changed

6 files changed

+277
-92
lines changed

.screenshots/cypress/e2e/usage-advanced-features.cy.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,18 @@ describe('usage advanced features', () => {
241241
})
242242
})
243243

244+
it('escalation-panel', () => {
245+
cy.loginDesktopView(Cypress.env('ADMIN_LOGIN'), Cypress.env('ADMIN_PASS'))
246+
cy.visit('/desktop/tickets/3')
247+
cy.wait(3000) // loading
248+
cy.get('[aria-label="Show ticket escalation information"]').trigger('mouseenter').wait(1000)
249+
cy.get('.popover*').should('be.visible')
250+
cy.get('[aria-label="Show ticket escalation information"]').clip({ padding: 5 }).then((TopClip) => {
251+
cy.get('.popover*').clip({ padding: 5 }).then((BottomClip) => {
252+
cy.mergeClips(TopClip, BottomClip).then((clip) => {
253+
cy.screenshot('escalation-panel', { clip })
254+
})
255+
})
256+
})
257+
})
244258
})

.screenshots/zammad-stack/seeds/seeds.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@
145145
created_at: created_at,
146146
updated_at: created_at,
147147
escalation_at: Time.zone.now - 40.minutes,
148+
first_response_escalation_at: Time.zone.now - 40.minutes,
149+
close_escalation_at: Time.zone.now + 200.minutes,
148150
)
149151
article = Ticket::Article.create(
150152
ticket: ticket2,
@@ -657,6 +659,10 @@
657659
created_at: Time.zone.now,
658660
)
659661

662+
puts 'Enabling AI features...'
663+
664+
# Enable AI features
665+
660666
SeedHelpers.set_setting_without_validation(name: 'ai_provider', value: 'zammad_ai')
661667
SeedHelpers.set_setting_without_validation(name: 'ai_provider_config', value: { 'token' => 'foobar' }) # just a fake token to trigger the feature
662668
Setting.set('ai_assistance_ticket_summary', true)

0 commit comments

Comments
 (0)