Skip to content

oeb-test | somtimes all tests fail #21

@timber-they

Description

@timber-they

Somestimes in the test execution with docker all tests fail:

> test
> npx mocha test



  Badge Test
    1) should login
    2) should create a participation badge
    3) should validate the participation badge
    4) delete the participation badge
    5) should create a competency badge
    6) should validate the competency badge
    7) should award the competency badge
    8) "after each" hook for "should award the competency badge"
    9) "after all" hook for "delete the micro degree"

  Issuer Test
    10) "before all" hook for "should create an issuer"
    11) "after all" hook for "should verify the issuer details"

  Login Test
    12) "before all" hook for "should be able to log in"
    13) "after all" hook for "should be able to log in"

  QR test
    14) "before all" hook for "should create a badge"
    15) "after all" hook for "should receive the badge"

  Signup Test
    16) "before all" hook for "should be able to sign up"
    17) "after all" hook for "should delete user account using UI"

  Title Test
    18) "before all" hook for "should match the expected title"
    19) "after all" hook for "should match the expected title"


  0 passing (1m)
  19 failing

  1) Badge Test
       should login:
     NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":"input[placeholder="Deine E-Mail Adresse"]"}
  (Session info: chrome=136.0.7103.59)
      at Object.throwDecodedError (node_modules/selenium-webdriver/lib/error.js:521:15)
      at parseHttpResponse (node_modules/selenium-webdriver/lib/http.js:514:13)
      at Executor.execute (node_modules/selenium-webdriver/lib/http.js:446:28)
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
      at async Driver.execute (node_modules/selenium-webdriver/lib/webdriver.js:744:17)
      at async login (file:///project/test/login.js:15:24)
      at async Context.<anonymous> (file:///project/test/badge.spec.js:72:9)

  2) Badge Test
       should create a participation badge:
     TimeoutError: Waiting for element to be located by function()
Wait timed out after 12256ms
      at /project/node_modules/selenium-webdriver/lib/webdriver.js:915:22
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

  3) Badge Test
       should validate the participation badge:
     TimeoutError: Waiting for element to be located by function()
Wait timed out after 12215ms
      at /project/node_modules/selenium-webdriver/lib/webdriver.js:915:22
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

  4) Badge Test
       delete the participation badge:
     AssertionError [ERR_ASSERTION]: Failed to find the badge
      at deleteBadgeOverApi (file:///project/test/badge.js:436:5)
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
      at async Context.<anonymous> (file:///project/test/badge.spec.js:88:9)

  5) Badge Test
       should create a competency badge:
     TimeoutError: Waiting for element to be located by function()
Wait timed out after 12259ms
      at /project/node_modules/selenium-webdriver/lib/webdriver.js:915:22
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

  6) Badge Test
       should validate the competency badge:
     TimeoutError: Waiting for element to be located by function()
Wait timed out after 12167ms
      at /project/node_modules/selenium-webdriver/lib/webdriver.js:915:22
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

  7) Badge Test
       should award the competency badge:
     Error: ECONNREFUSED connect ECONNREFUSED 172.18.0.2:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:293:15)
      at ClientRequest.emit (node:events:507:28)
      at emitErrorEvent (node:_http_client:104:11)
      at Socket.socketErrorListener (node:_http_client:518:5)
      at Socket.emit (node:events:507:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

  8) Badge Test
       "after each" hook for "should award the competency badge":
     Error: ECONNREFUSED connect ECONNREFUSED 172.18.0.2:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:293:15)
      at ClientRequest.emit (node:events:507:28)
      at emitErrorEvent (node:_http_client:104:11)
      at Socket.socketErrorListener (node:_http_client:518:5)
      at Socket.emit (node:events:507:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

  9) Badge Test
       "after all" hook for "delete the micro degree":
     Error: ECONNREFUSED connect ECONNREFUSED 172.18.0.2:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:293:15)
      at ClientRequest.emit (node:events:507:28)
      at emitErrorEvent (node:_http_client:104:11)
      at Socket.socketErrorListener (node:_http_client:518:5)
      at Socket.emit (node:events:507:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

  10) Issuer Test
       "before all" hook for "should create an issuer":
     Error: ECONNREFUSED connect ECONNREFUSED 172.18.0.2:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:293:15)
      at ClientRequest.emit (node:events:507:28)
      at emitErrorEvent (node:_http_client:104:11)
      at Socket.socketErrorListener (node:_http_client:518:5)
      at Socket.emit (node:events:507:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

  11) Issuer Test
       "after all" hook for "should verify the issuer details":
     AssertionError [ERR_ASSERTION]: Failed to find the issuer
      at deleteIssuerOverApi (file:///project/test/issuer.js:95:5)
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
      at async Context.<anonymous> (file:///project/test/issuer.spec.js:44:9)

  12) Login Test
       "before all" hook for "should be able to log in":
     Error: ECONNREFUSED connect ECONNREFUSED 172.18.0.2:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:293:15)
      at ClientRequest.emit (node:events:507:28)
      at emitErrorEvent (node:_http_client:104:11)
      at Socket.socketErrorListener (node:_http_client:518:5)
      at Socket.emit (node:events:507:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

  13) Login Test
       "after all" hook for "should be able to log in":
     TypeError: Cannot read properties of undefined (reading 'quit')
      at Context.<anonymous> (file:///project/test/login.spec.js:26:36)
      at process.processImmediate (node:internal/timers:505:21)

  14) QR test
       "before all" hook for "should create a badge":
     Error: ECONNREFUSED connect ECONNREFUSED 172.18.0.2:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:293:15)
      at ClientRequest.emit (node:events:507:28)
      at emitErrorEvent (node:_http_client:104:11)
      at Socket.socketErrorListener (node:_http_client:518:5)
      at Socket.emit (node:events:507:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

  15) QR test
       "after all" hook for "should receive the badge":
     AssertionError [ERR_ASSERTION]: Failed to find the badge
      at deleteBadgeOverApi (file:///project/test/badge.js:436:5)
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
      at async Context.<anonymous> (file:///project/test/qr.spec.js:81:9)

  16) Signup Test
       "before all" hook for "should be able to sign up":
     Error: ECONNREFUSED connect ECONNREFUSED 172.18.0.2:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:293:15)
      at ClientRequest.emit (node:events:507:28)
      at emitErrorEvent (node:_http_client:104:11)
      at Socket.socketErrorListener (node:_http_client:518:5)
      at Socket.emit (node:events:507:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

  17) Signup Test
       "after all" hook for "should delete user account using UI":
     TypeError: Cannot read properties of undefined (reading 'quit')
      at Context.<anonymous> (file:///project/test/signup.spec.js:47:22)
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

  18) Title Test
       "before all" hook for "should match the expected title":
     Error: ECONNREFUSED connect ECONNREFUSED 172.18.0.2:4444
      at ClientRequest.<anonymous> (node_modules/selenium-webdriver/http/index.js:293:15)
      at ClientRequest.emit (node:events:507:28)
      at emitErrorEvent (node:_http_client:104:11)
      at Socket.socketErrorListener (node:_http_client:518:5)
      at Socket.emit (node:events:507:28)
      at emitErrorNT (node:internal/streams/destroy:170:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

  19) Title Test
       "after all" hook for "should match the expected title":
     TypeError: Cannot read properties of undefined (reading 'quit')
      at Context.<anonymous> (file:///project/test/title.spec.js:30:36)
      at process.processImmediate (node:internal/timers:505:21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions