Skip to content

Commit 464e935

Browse files
TheZokeredgarmueller
authored andcommitted
Update to 2.3.1-beta.0
1 parent 985cd7c commit 464e935

File tree

4 files changed

+2574
-2221
lines changed

4 files changed

+2574
-2221
lines changed

.travis.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
sudo: required
2-
31
language: node_js
42

53
node_js:
6-
- 'node'
4+
- 10
75

8-
cache: npm
6+
addons:
7+
apt:
8+
packages:
9+
- libgconf-2-4
910

10-
before_install:
11-
- npm update
11+
cache:
12+
npm: true
13+
directories:
14+
- ~/.cache
1215

1316
install:
1417
- npm ci

cypress/integration/test_form.spec.js

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,18 @@ context('Form', () => {
88

99
it('should change input values', () => {
1010
const nameText = 'John Deer';
11-
cy.get('[id="#/properties/name-input"]').clear().type(nameText);
12-
1311
const descText = 'This is a desc test';
14-
cy.get('[id="#/properties/description-input"]').clear().type(descText);
12+
const recurrenceIntervalText = 10;
13+
const dateText = '2001-03-15';
1514

15+
cy.get('[id="#/properties/name-input"]').clear().type(nameText);
16+
cy.get('[id="#/properties/description-input"]').clear().type(descText);
1617
cy.get('[id="#/properties/done-input"]').uncheck();
17-
1818
cy.get('[id="#/properties/recurrence"] > div').click();
1919
cy.get('[data-value="Monthly"]').click();
20-
21-
const recurrenceIntervalText = 10;
2220
cy.get('[id="#/properties/recurrence_interval-input"]').clear().type(recurrenceIntervalText);
23-
24-
cy.get('[id="#/properties/due_date-input"]').clear().type('35');
25-
21+
cy.get('[id="#/properties/due_date-input"]').clear().type(dateText);
2622
cy.get('[id="#/properties/rating"] span:last').click();
27-
2823
cy.get('[id="boundData"]').invoke('text').then((content => {
2924
const data = JSON.parse(content);
3025

@@ -37,19 +32,19 @@ context('Form', () => {
3732
expect(data.done).to.equal(false);
3833
expect(data.recurrence).to.equal('Monthly');
3934
expect(data.recurrence_interval).to.equal(recurrenceIntervalText);
40-
expect(data.due_date).to.equal('2001-03-15');
35+
expect(data.due_date).to.equal(dateText);
4136
expect(data.rating).to.equal(5);
4237
}));
4338
});
4439

4540
it('should show errors', () => {
4641
cy.get('[id="#/properties/name-input"]').clear();
4742

48-
cy.get('[id="#/properties/name"] p').should('not.be.empty');
43+
cy.get('[id="#/properties/name"] p:first-child').should('not.be.empty');
4944

5045
cy.get('[id="#/properties/due_date-input"]').clear().type('351');
5146

52-
cy.get('[id="#/properties/due_date"] p').should('not.be.empty');
47+
cy.get('[id="#/properties/due_date"] p:first-child').should('not.be.empty');
5348

5449
cy.get('[id="#/properties/recurrence"] > div').click();
5550
cy.get('[data-value="Never"]').click();

0 commit comments

Comments
 (0)