context('ga-lite', () => {
  beforeEach(() => {
    cy.visit('cypress/fixtures/index.html')
  })

  it('should respond correctly to pageview event', async () => {
    cy.server()
    cy.route(/www.google-analytics.com\/collect/, '').as('gaCollect')
    cy.window().then(win => cy.stub(win.navigator, 'sendBeacon'))
    cy.window().invoke('galite', 'send', 'pageview')
    cy.wait('@gaCollect')

    cy.get('@gaCollect').should(xhr => {
      const url = new URL(xhr.url)

      expect(url.search).to.include('v=1&ul=en-us&de=UTF-8')
      expect(url.search).to.include(
        '&dl=http://localhost:64947/cypress/fixtures/index.html'
      )
      expect(url.search).to.include('&dt=')
      expect(url.search).to.include('&sd=24-bit')
      expect(url.search).to.include('&sr=928x1680')
      expect(url.search).to.include('vp=1000x660')
      expect(url.search).to.include('&dr=')
      expect(url.search).to.include('&cid=12345')
      expect(url.search).to.include('&tid=UA-12345')
      expect(url.search).to.include('&t=pageview')
      expect(url.search).to.include('&z=')
    })
  })
})

@@ -554,23 +554,21 @@
 rch).to.
-include
+match
 (%0A      
@@ -569,17 +569,17 @@
         
-'
+/
 &dl=http
@@ -579,17 +579,19 @@
 dl=http:
-/
+%5C/%5C
 /localho
@@ -597,21 +597,20 @@
 ost:
-64947
+%5Cd+%5C
 /cypress
 /fix
@@ -601,24 +601,25 @@
 %5Cd+%5C/cypress
+%5C
 /fixtures/in
@@ -607,32 +607,33 @@
 ypress%5C/fixtures
+%5C
 /index.html'%0A   
@@ -627,17 +627,17 @@
 dex.html
-'
+/
 %0A      )
@@ -1087,11 +1087,12 @@
 %7D)%0A  %7D)%0A
+%0A
 %7D)%0A

Fix cypress test determinism