Skip to content

method .is("*") returns different results for visual objects an concept #122

@markbacker

Description

@markbacker

Version of jArchi, Operating System

  • Archi: 5.0.2.202304051112
  • Platform: windows 10
  • Javascript engine: GraalVM
  • jArchi plugin: 1.4.0.202303211027

Expected Behaviour

A test with .is("*") should return the same result for both visual objects as for concepts.

So far, I've seen this behavior only with the selector "*".
This didn't happen in a previous release. Don't know the jArchi version that introduced this error

Actual Behaviour

The test with a visual object returns false.
The test with the same object selected in the model tree returns true

Steps to Reproduce the Behaviour (with attached test files/script)

/**
 * test .is()
 * 
 * select an application-component on a view and run the script
 * next select the application-component in the model tree and run the script
 * 
 */
console.log(`Result from .is("*") = ${$(selection).is("*")}`)
console.log(`Result from .is("application-component") = ${$(selection).is("application-component")}`)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions