Skip to content

Commit 35ce245

Browse files
committed
notes
1 parent 9aea3a4 commit 35ce245

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

ui-tests/cypress/e2e/sdk/notes.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,21 @@
1616
- Tests are not checking tooltip text. This should be added.
1717
- No RN and Flutter tests yet. They should be added.
1818
- There can be more tests with bad conditions (like weird sdk versions).
19-
- For local tests you might want to change this command:
19+
- For local tests:
20+
- change lib/sdk/setup.js
21+
22+
```javascript
23+
cy.dropMongoDatabase(true);
24+
```
25+
26+
- change this command and add port to cypress.config.js:
2027

2128
```javascript
2229
Cypress.Commands.add('dropMongoDatabase', ({ local }) => {
2330
cy.exec(`mongosh ${local ? 'mongodb' : 'localhost'}/countly --eval 'db.dropDatabase()'`);
2431
});
2532
```
33+
In wsl you might use Xvfb:
34+
```bash
35+
xvfb-run -a npx cypress run
36+
```

ui-tests/cypress/e2e/sdk/tool_04.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ describe('4.Mixed tooltip (old Android SDK version)', () => {
1515
it('4.3-Test', function() {
1616
goToConfigTab(true);
1717
checkTooltipAppears('success', 2, true);
18-
checkTooltipAppears('warning', 19, true);
18+
checkTooltipAppears('warning', 20, true);
1919
});
2020
});

ui-tests/cypress/e2e/sdk/tool_05.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ describe('5.Mixed tooltip (old iOS SDK version)', () => {
1515
it('5.3-Test', function() {
1616
goToConfigTab(true);
1717
checkTooltipAppears('success', 2, true);
18-
checkTooltipAppears('warning', 19, true);
18+
checkTooltipAppears('warning', 20, true);
1919
});
2020
});

ui-tests/cypress/e2e/sdk/tool_09.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ describe('9.Mixed tooltip (multiple SDK versions)', () => {
1818
it('9.3-Test', function() {
1919
goToConfigTab(true);
2020
checkTooltipAppears('success', 2, true);
21-
checkTooltipAppears('warning', 19, true);
21+
checkTooltipAppears('warning', 20, true);
2222
});
2323
});

0 commit comments

Comments
 (0)