forcedotcom / LightningTestingService

Apache License 2.0
122 stars 35 forks source link

jasmineTests.app Failed - Definition does not exist #85

Closed jBrennen closed 4 years ago

jBrennen commented 6 years ago

I have installed the unmanaged package (LTS with Examples) v1.4 in to a non-DX environment and attempted to run both the jasmineTests.app and mochaTests.app without success. Apart from the first two specs (testing true is true etc.) all the specs fail with the error "Definition does not exist on the client for descriptor:markup://c:. Client side caches have been cleared. Please reload the page.". I have double checked that the package is installed correctly and the components it is attempting to use are present in the org.

To reproduce:

  1. Create dev org and install "LTS with Examples" package (Admins only).
  2. Navigate to https:///c/jasmineTests.app
joshuadelange commented 4 years ago

I have the same issue. When I go to https://eu32.lightning.force.com/c/jasmineTests.app, I get the message that the URL does not exist.

joshuadelange commented 4 years ago

I now added implements="flexipage:availableForAllPageTypes" to the lts_jamineRunner.cmp and created a lightning page where I load the component, that seems to be working now.

KrisGraySFDC commented 4 years ago

Curious why you're installing it into a non-DX environment.

Also, that interface is for embedding using app-builder. So you shouldn't need that. Can you tell me more about your situation?

joshuadelange commented 4 years ago

Hi @KrisGraySFDC , our team haven't switched to DX yet for a bunch of reasons. The biggest being that our projects involve complex communities. We haven't found a way to make those work in scratch orgs. I'd love to hear your input on that.

Like @jBrennen mentioned, we both went to /c/jasmineTests.app after we installed the package, but there is nothing there. I then wrapped the component in app builder so we can still access it.

The documentation seems to suggest /c/jasmineTests.app should be available even if you install by package. Maybe this can be adjusted? Or did we miss something?