fix(tracker): fix ut.test.ts
This commit is contained in:
parent
abd7084bb2
commit
96ebc93432
5 changed files with 5 additions and 4 deletions
Binary file not shown.
|
|
@ -34,7 +34,7 @@
|
|||
"socket.io-client": "^4.7.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@openreplay/tracker": "^11.0.2-2"
|
||||
"@openreplay/tracker": "^11.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openreplay/tracker": "file:../tracker",
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export const pkgVersion = '7.0.1-4'
|
||||
export const pkgVersion = '7.0.1'
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@ export default class UserTestManager {
|
|||
this.userRecorder = new Recorder(app)
|
||||
const sessionId = this.app.getSessionID()
|
||||
const savedSessionId = this.app.localStorage.getItem(SESSION_ID)
|
||||
console.log(sessionId, savedSessionId)
|
||||
if (sessionId !== savedSessionId) {
|
||||
this.app.localStorage.removeItem(this.storageKey)
|
||||
this.app.localStorage.removeItem(SESSION_ID)
|
||||
|
|
|
|||
|
|
@ -33,7 +33,9 @@ describe('UserTestManager', () => {
|
|||
test('should create a greeting', () => {
|
||||
userTestManager.createGreeting('Hello', true, true)
|
||||
expect(document.body.innerHTML).toContain('Hello')
|
||||
expect(document.body.innerHTML).toContain('Welcome, this session will be recorded.')
|
||||
expect(document.body.innerHTML).toContain(
|
||||
"We're recording this browser tab to learn from your experience.",
|
||||
)
|
||||
})
|
||||
|
||||
test('should show a widget with descriptions and tasks', () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue