Advertisement
ayush-AI

failing-E2E-tests-for-edit

Mar 23rd, 2023 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.78 KB | None | 0 0
  1. Error: expect(received).toHaveURL(expected)
  2.  
  3. Expected string: "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/chart/Patient%20Summary"
  4. Received string: "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  5. Call log:
  6.   - expect.toHaveURL with timeout 40000ms
  7.   - waiting for locator(':root')
  8.   -   locator resolved to <html lang="en"></html>
  9.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  10.   - waiting for locator(':root')
  11.   -   locator resolved to <html lang="en"></html>
  12.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  13.   -   locator resolved to <html lang="en"></html>
  14.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  15.   -   locator resolved to <html lang="en"></html>
  16.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  17.   -   locator resolved to <html lang="en"></html>
  18.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  19.   -   locator resolved to <html lang="en"></html>
  20.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  21.   -   locator resolved to <html lang="en"></html>
  22.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  23.   -   locator resolved to <html lang="en"></html>
  24.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  25.   -   locator resolved to <html lang="en"></html>
  26.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  27.   -   locator resolved to <html lang="en"></html>
  28.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  29.   -   locator resolved to <html lang="en"></html>
  30.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  31.   -   locator resolved to <html lang="en"></html>
  32.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  33.   -   locator resolved to <html lang="en"></html>
  34.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  35.   -   locator resolved to <html lang="en"></html>
  36.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  37.   -   locator resolved to <html lang="en"></html>
  38.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  39.   -   locator resolved to <html lang="en"></html>
  40.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  41.   -   locator resolved to <html lang="en"></html>
  42.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  43.   -   locator resolved to <html lang="en"></html>
  44.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  45.   -   locator resolved to <html lang="en"></html>
  46.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  47.   -   locator resolved to <html lang="en"></html>
  48.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  49.   -   locator resolved to <html lang="en"></html>
  50.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  51.   -   locator resolved to <html lang="en"></html>
  52.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  53.   -   locator resolved to <html lang="en"></html>
  54.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  55.   -   locator resolved to <html lang="en"></html>
  56.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  57.   -   locator resolved to <html lang="en"></html>
  58.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  59.   -   locator resolved to <html lang="en"></html>
  60.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  61.   -   locator resolved to <html lang="en"></html>
  62.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  63.   -   locator resolved to <html lang="en"></html>
  64.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  65.   -   locator resolved to <html lang="en"></html>
  66.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  67.   -   locator resolved to <html lang="en"></html>
  68.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  69.   -   locator resolved to <html lang="en"></html>
  70.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  71.   -   locator resolved to <html lang="en"></html>
  72.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  73.   -   locator resolved to <html lang="en"></html>
  74.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  75.   -   locator resolved to <html lang="en"></html>
  76.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  77.   -   locator resolved to <html lang="en"></html>
  78.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  79.   -   locator resolved to <html lang="en"></html>
  80.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  81.   -   locator resolved to <html lang="en"></html>
  82.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  83.   -   locator resolved to <html lang="en"></html>
  84.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  85.   -   locator resolved to <html lang="en"></html>
  86.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  87.   -   locator resolved to <html lang="en"></html>
  88.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  89.   -   locator resolved to <html lang="en"></html>
  90.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  91.   -   locator resolved to <html lang="en"></html>
  92.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  93.   -   locator resolved to <html lang="en"></html>
  94.   -   unexpected value "http://localhost:8080/openmrs/spa/patient/7c379278-0fa6-4c03-8ccf-f5456fa69839/edit"
  95.  
  96.  
  97.   37 |   await patientEditPage.fillPatientRegistrationForm(formValues);
  98.   38 |
  99. > 39 |   await expect(page).toHaveURL(`${process.env.E2E_BASE_URL}/spa/patient/${patient.uuid}/chart/Patient Summary`);
  100.      |                      ^
  101.   40 |   const updatedPatient = await getPatient(api, patient.uuid);
  102.   41 |   const { person } = updatedPatient;
  103.   42 |   const { givenName, middleName, familyName, sex } = formValues;
  104.  
  105.     at D:\open-source\O3\openmrs-esm-patient-management\e2e\specs\patientEdit.spec.ts:39:22
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement