Skip to content

Commit 57f375e

Browse files
Merge pull request #85 from LottieFiles/develop
chore: updated wait times for gh runner
2 parents 07705db + 0e1c7b7 commit 57f375e

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [master, beta]
66

77
jobs:
88
build:
@@ -66,7 +66,7 @@ jobs:
6666
node-version: ${{ matrix.node-version }}
6767
registry-url: https://registry.npmjs.org/
6868
- run: yarn install --frozen-lockfile
69-
- run: npm publish --tag beta --access public
69+
- run: npm publish --access public
7070
env:
7171
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
7272
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -92,7 +92,7 @@ jobs:
9292
- run:
9393
echo "//npm.pkg.github.com:_authToken=${{ secrets.GITHUB_TOKEN }}" >
9494
~/.npmrc
95-
- run: npm publish --tag beta --@lottiefiles:registry=https://npm.pkg.github.com/
95+
- run: npm publish --@lottiefiles:registry=https://npm.pkg.github.com/
9696
env:
9797
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9898
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

cypress/integration/player_controls.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ context("Player controls", () => {
1010
});
1111

1212
it("clicks on play button and verifies animation is playing", function (done) {
13-
cy.wait(2000);
13+
cy.wait(3000);
1414
cy.get("#container-one .lf-player-btn").eq(0).click({force: true});
1515

1616
cy.window().then( (win) => {
@@ -20,7 +20,7 @@ context("Player controls", () => {
2020
});
2121

2222
it("clicks on pause button and verifies animation is paused", function (done) {
23-
cy.wait(2000);
23+
cy.wait(3000);
2424
cy.get("#container-two .lf-player-btn").eq(0).click({force: true});
2525

2626
cy.window().then( (win) => {
@@ -30,7 +30,7 @@ context("Player controls", () => {
3030
});
3131

3232
it("clicks on stop button and verififes animation is stopped and at frame 0", function (done) {
33-
cy.wait(2000);
33+
cy.wait(3000);
3434
cy.get("#container-three .lf-player-btn").eq(1).click({force: true});
3535

3636
cy.window().then( (win) => {

cypress/integration/player_methods.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ context("Player methods", () => {
88
});
99

1010
it("Player-one should have play toggled.", function (done) {
11-
cy.wait(1000);
11+
cy.wait(3000);
1212
cy.window().then( (win) => {
1313
if (!win.lottie.getRegisteredAnimations()[0].isPaused)
1414
done();
1515
});
1616
});
1717

1818
it.skip("Player-two should have loop toggled.", function (done) {
19-
cy.wait(1000);
19+
cy.wait(3000);
2020
cy.window().then( (win) => {
2121
if (!win.lottie.getRegisteredAnimations()[1].loop)
2222
done();
2323
});
2424
});
2525

2626
it("Player-three should play at x5 the speed", function(done) {
27-
cy.wait(1000);
27+
cy.wait(3000);
2828
cy.window().then( (win) => {
2929
if (win.lottie.getRegisteredAnimations()[2].playSpeed === 5)
3030
done();
@@ -38,7 +38,7 @@ context("Player methods", () => {
3838
});
3939

4040
it("Player-five should be paused.", function (done) {
41-
cy.wait(1000);
41+
cy.wait(3000);
4242
cy.window().then( (win) => {
4343
if (win.lottie.getRegisteredAnimations()[4].isPaused)
4444
done();

cypress/integration/player_properties.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ context("Player properties", () => {
1414
});
1515

1616
it("Player-two should play at x5 the speed", () => {
17-
cy.wait(1000);
17+
cy.wait(3000);
1818
cy.window().then( (win) => {
1919
if (!win.lottie.getRegisteredAnimations()[1].playSpeed === 5)
2020
done();
2121
});
2222
});
2323

2424
it("Player-three should autoplay and loop", function (done) {
25-
cy.wait(1000);
25+
cy.wait(3000);
2626
cy.window().then( (win) => {
2727
if (!win.lottie.getRegisteredAnimations()[2].isPaused
2828
&& win.lottie.getRegisteredAnimations()[2].loop)
@@ -32,8 +32,8 @@ context("Player properties", () => {
3232
});
3333

3434
it("Player-four should play on hover", function (done) {
35+
cy.wait(3000);
3536
cy.get("#player-four").trigger('mouseenter');
36-
cy.wait(1000);
3737
cy.window().then( (win) => {
3838
if (!win.lottie.getRegisteredAnimations()[3].isPaused)
3939
done();

0 commit comments

Comments
 (0)