This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into fb-leap-240/fix-cli…
…ck-outside
- Loading branch information
Showing
16 changed files
with
112 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,37 @@ | ||
1.) First replace this text with a brief description of what this pull request does. Include reasoning, references, and other thoughts for better understanding. | ||
2.) Then fill in the items below (adding more description if necessary) or remove them if they aren't relevant. | ||
Please read all items and ensure that each section has been **filled in OR removed** to create more consistent PRs! Thank you! | ||
|
||
### PR fulfills these requirements | ||
- [ ] Commit message(s) and PR title follows the format `[fix|feat|ci|chore|doc]: TICKET-ID: Short description of change made` ex. `fix: DEV-XXXX: Removed inconsistent code usage causing intermittent errors` | ||
- [ ] Tests for the changes have been added/updated (for bug fixes/features) | ||
- [ ] Docs have been added/updated (for bug fixes/features) | ||
- [ ] Tests for the changes have been added/updated | ||
- [ ] Docs have been added/updated | ||
- [ ] Best efforts were made to ensure docs/code are concise and coherent (checked for spelling/grammatical errors, commented out code, debug logs etc.) | ||
- [ ] Self-reviewed and ran all changes on a local instance (for bug fixes/features) | ||
|
||
|
||
|
||
#### Change has impacts in these area(s) | ||
_(check all that apply)_ | ||
- [ ] Product design | ||
- [ ] Frontend | ||
|
||
|
||
- [ ] Self-reviewed and ran all changes on a local instance | ||
|
||
### Describe the reason for change | ||
_(link to issue, supportive screenshots etc.)_ | ||
|
||
|
||
|
||
#### What does this fix? | ||
_(if this is a bug fix)_ | ||
|
||
|
||
|
||
#### What is the new behavior? | ||
_(if this is a breaking or feature change)_ | ||
|
||
|
||
|
||
#### What is the current behavior? | ||
_(if this is a breaking or feature change)_ | ||
|
||
|
||
_(if it's not clear from main description — otherwise remove this section)_ | ||
|
||
#### What libraries were added/updated? | ||
_(list all with version changes)_ | ||
|
||
|
||
|
||
#### Does this change affect performance? | ||
_(if so describe the impacts positive or negative)_ | ||
|
||
|
||
|
||
#### Does this change affect security? | ||
_(if so describe the impacts positive or negative)_ | ||
|
||
|
||
|
||
#### What alternative approaches were there? | ||
_(briefly list any if applicable)_ | ||
|
||
|
||
|
||
#### What feature flags were used to cover this change? | ||
_(briefly list any if applicable)_ | ||
### What feature flags were used to cover this change? | ||
_(list any feature flags created for this PR or used to cover changes in this PR)_ | ||
|
||
### What alternative approaches were there? | ||
_(if there are multiple ways to go, describe them and the reasoning for chosing the current way)_ | ||
|
||
### This change affects (describe how if yes) | ||
- [ ] Performance | ||
- [ ] Security | ||
- [ ] UX | ||
|
||
### Does this PR introduce a breaking change? | ||
_(check only one)_ | ||
- [ ] Yes, and covered entirely by feature flag(s) | ||
- [ ] Yes, and covered partially by feature flag(s) | ||
- [ ] No | ||
- [ ] Not sure (briefly explain the situation below) | ||
|
||
|
||
|
||
### What level of testing was included in the change? | ||
_(check all that apply)_ | ||
- [ ] e2e | ||
- [ ] integration | ||
- [ ] unit | ||
|
||
|
||
- [ ] e2e (codecept) | ||
- [ ] integration (cypress) | ||
- [ ] unit (jest) | ||
|
||
### Which logical domain(s) does this change affect? | ||
_(for bug fixes/features, be as precise as possible. ex. Authentication, Annotation History, Review Stream etc.)_ | ||
_(if not already included in the description, add a comma-separated list like "Taxonomy, Dynamic Children")_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { LabelStudio } from '@heartexlabs/ls-test/helpers/LSF'; | ||
|
||
describe('<Text> tag', () => { | ||
it('Display non-string values', () => { | ||
const config = ` | ||
<View> | ||
<Header>String — usual case</Header> | ||
<Text name="string" value="$string"></Text> | ||
<Header>Float number</Header> | ||
<Text name="number" value="$number"></Text> | ||
<Header>Boolean</Header> | ||
<Text name="bool" value="$bool"></Text> | ||
<Header>Array</Header> | ||
<Text name="array" value="$array"></Text> | ||
<Header value="Crazy header $string $number $bool $array" /> | ||
</View> | ||
`; | ||
|
||
const data = { | ||
string: 'Simple text', | ||
number: 123.45, | ||
bool: false, | ||
array: [1, 2, 3], | ||
}; | ||
|
||
LabelStudio.params() | ||
.config(config) | ||
.data(data) | ||
.withResult([]) | ||
.init(); | ||
|
||
cy.get('.lsf-object').contains('Simple text').should('be.visible'); | ||
cy.get('.lsf-object').contains('123.45').should('be.visible'); | ||
cy.get('.lsf-object').contains('false').should('be.visible'); | ||
cy.get('.lsf-object').contains('1,2,3').should('be.visible'); | ||
}); | ||
}); |