Closed Dominik-Kriese closed 6 months ago
As one needs to run tests for the problem to occur, I created a little repository for the reproduction. I hope this is fine as well. https://github.com/Dominik-Kriese/ng-aquilla-test-repo
Steps to reproduce:
This test should find the according nx data display.
The harness errors as there is a nx data display present without a label
I took a look into it and it seems to be this file that creates the issue:
// projects/ng-aquila/src/data-display/testing/data-display-harness.ts async getLabel(): Promise<string> { return (await this._getLabel()).text(); }
I would propose the following change, which ensures, that a non present label is interpreted as undefined:
// projects/ng-aquila/src/data-display/testing/data-display-harness.ts async getLabel(): Promise<string> { return (await this._getLabel()).text().catch(() => undefined); }
If that is a valid solution, I could provide a pull request.
Best Regards and thanks in advance.
I talked to a colleague of mine and will port this issue to the internal repositories. Sorry for the wrong place to post this.
Reproduction Link
As one needs to run tests for the problem to occur, I created a little repository for the reproduction. I hope this is fine as well. https://github.com/Dominik-Kriese/ng-aquilla-test-repo
Steps to reproduce:
π Expected Behavior
This test should find the according nx data display.
π Actual Behavior
The harness errors as there is a nx data display present without a label
π¦ Environment
Current information:
I took a look into it and it seems to be this file that creates the issue:
I would propose the following change, which ensures, that a non present label is interpreted as undefined:
If that is a valid solution, I could provide a pull request.
Best Regards and thanks in advance.