Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemmiz committed Aug 14, 2017
1 parent 424bcef commit 6553486
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions detox/test/e2e/d-assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ describe('Assertions', () => {
await expect(element(by.id('UniqueId204'))).toHaveText('I contain some text');
});

// matches by accesibility label, this might not be the specific displayed text but is much more generic
it('should assert an element has (accesibility) label', async () => {
// matches by accessibility label, this might not be the specific displayed text but is much more generic
it('should assert an element has (accessibility) label', async () => {
await expect(element(by.id('UniqueId204'))).toHaveLabel('I contain some text');
});

it('should assert an element has (accesibility) id', async () => {
it('should assert an element has (accessibility) id', async () => {
await expect(element(by.label('I contain some text'))).toHaveId('UniqueId204');
});

// for example, the value of a UISwitch in the "on" state is "1"
it(':ios: should assert an element has (accesibility) value', async () => {
it(':ios: should assert an element has (accessibility) value', async () => {
await expect(element(by.id('UniqueId146'))).toHaveValue('0');
await element(by.id('UniqueId146')).tap();
await expect(element(by.id('UniqueId146'))).toHaveValue('1');
Expand Down

0 comments on commit 6553486

Please sign in to comment.