Skip to content

Commit

Permalink
:p: Update frontend dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnjack committed Jul 6, 2024
1 parent 93fe4c8 commit 958afe2
Show file tree
Hide file tree
Showing 14 changed files with 7,895 additions and 6,774 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"editor.detectIndentation": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"eslint.workingDirectories": [
"src/frontend/"
Expand Down
10 changes: 10 additions & 0 deletions go.work.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.etcd.io/gofail v0.1.0/go.mod h1:VZBCXYGZhHAinaBiiqYvuDynvahNsAyLFwB3kEHKz1M=
golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc=
golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4=
golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=
18 changes: 8 additions & 10 deletions src/frontend/cypress/integration/10feed_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ describe("Feed page", function () {
form: true,
});
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=no-builds-found]").should("contain", "No builds found");
cy.get("[data-cy=filter]").clear();
cy.get("[data-cy=filter]").click({force:true}).clear();
cy.request({
url: `/api/job/${jobName}/run`,
method: "POST",
Expand All @@ -36,7 +36,7 @@ describe("Feed page", function () {
body: {},
form: true,
});
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=feed-container]").should("have.length", 1);
cy.get("[data-cy=filtered-updates]").should("not.be.visible");
});
Expand Down Expand Up @@ -70,7 +70,7 @@ describe("Feed page", function () {
form: true,
});
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.request({
url: `/api/job/${jobName}/run`,
method: "POST",
Expand Down Expand Up @@ -155,7 +155,7 @@ run: env
});

cy.login();
cy.get("[data-cy=filter]").clear().type("bereza");
cy.get("[data-cy=filter]").click({force:true}).clear().type("bereza");
cy.get("[data-cy=feed-container]").should("be.visible").should("have.length", 1);
});

Expand Down Expand Up @@ -214,7 +214,7 @@ run: env

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=params-container]")
.invoke("attr", "data-cy-build")
.then((val) => {
Expand Down Expand Up @@ -273,9 +273,7 @@ run: env
form: true,
});
cy.login();
cy.get("[data-cy=filter]")
.clear()
.type('"' + jobName + '"');
cy.get("[data-cy=filter]").click({force: true}).clear().type('"' + jobName + '"');
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -348,7 +346,7 @@ concurrency: 1
});
cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy-status]").should("have.length", 2);
cy.get("[data-cy-status]").should((items) => {
expect(items, "2 items").to.have.length(2);
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/cypress/integration/30jobs_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe("Jobs page", function () {
.clear()
.type(jobName + "bad");
cy.get("[data-cy=jobs-container]").should("contain", "No jobs found");
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=jobs-container]").should("have.length", 1);
});
});
26 changes: 13 additions & 13 deletions src/frontend/cypress/integration/40build_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("Build page", function () {
});
cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -92,7 +92,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -168,7 +168,7 @@ artifacts:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -249,7 +249,7 @@ artifacts:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -313,7 +313,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -380,7 +380,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -446,7 +446,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -523,7 +523,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -592,7 +592,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -659,7 +659,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -725,7 +725,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -791,7 +791,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -857,7 +857,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down
12 changes: 6 additions & 6 deletions src/frontend/cypress/integration/41build_include.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
// Reset include file content
cy.writeFile(filePath, "");
Expand Down Expand Up @@ -147,7 +147,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -229,7 +229,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -304,7 +304,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -378,7 +378,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -451,7 +451,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/cypress/integration/42build_ignore_errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -114,7 +114,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down
12 changes: 6 additions & 6 deletions src/frontend/cypress/integration/43build_block.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -106,7 +106,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -185,7 +185,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -259,7 +259,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -334,7 +334,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -410,7 +410,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down
6 changes: 3 additions & 3 deletions src/frontend/cypress/integration/44build_aborted.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tasks:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -93,7 +93,7 @@ on_aborted:

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down Expand Up @@ -154,7 +154,7 @@ timeout: 1s

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy=open-build-button]").should("have.length", 1);
cy.get("[data-cy-build]")
.invoke("attr", "data-cy-build")
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/cypress/integration/45build_concurrency.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ concurrency: 0

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy-status]").should("have.length", 2);
cy.get("[data-cy-status]").should((items) => {
expect(items, "2 items").to.have.length(2);
Expand Down Expand Up @@ -104,7 +104,7 @@ concurrency: 1

cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy-status]").should("have.length", 2);
cy.get("[data-cy-status]").should((items) => {
expect(items, "2 items").to.have.length(2);
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/cypress/integration/46build_interval.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ concurrency: 1
});
cy.visit("/");
cy.login();
cy.get("[data-cy=filter]").clear().type(jobName);
cy.get("[data-cy=filter]").click({force:true}).clear().type(jobName);
cy.get("[data-cy-status]").should("have.length.at.least", 2);
cy.get("[data-cy-status]").should((items) => {
expect(items, "2 items").to.have.length(2);
Expand Down
Loading

0 comments on commit 958afe2

Please sign in to comment.