Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
n313893254 committed Jul 18, 2023
1 parent 6e3b824 commit cc3df83
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 21 deletions.
1 change: 1 addition & 0 deletions cypress/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ WORKDIR /src
COPY . /src

RUN yarn install
RUN yarn cache clean

ENV PATH /src/node_modules/.bin:$PATH

Expand Down
2 changes: 1 addition & 1 deletion cypress/pageobjects/image.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class ImagePage extends CruResourcePo {
this.search(vmName);
cy.wait(2000);
cy.wrap('async').then(() => {
this.table.find(vmName, 7, namespace, 4).then((index: any) => {
this.table.find(vmName, 7, namespace, 4).then((index: number) => {
if (typeof index === 'number') {
cy.get(`[data-testid="sortable-table-${index}-row"]`).find('td').eq(2).invoke('text').then((volumeName) => {
volumes.exportImage(volumeName.trim(), imageName);
Expand Down
8 changes: 2 additions & 6 deletions cypress/scripts/e2e
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
#!/bin/bash
MINIO_ENDPOINT=$MINIO_ENDPOINT
MINIO_ACCESS_KEY=$MINIO_ACCESS_KEY
MINIO_SECRET_KEY=$MINIO_SECRET_KEY

TESTS_FAILED=false

xvfb-run --server-args='-screen 0 1024x768x16 -ac' yarn run e2e
CMD=xvfb-run --server-args='-screen 0 1024x768x16 -ac' yarn run e2e

if [ $? -ne 0 ]; then
if ! $CMD; then
echo "Cypress tests failed."
TESTS_FAILED=true
fi
Expand Down
2 changes: 0 additions & 2 deletions cypress/scripts/list-reporters
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/bash
MINIO_ENDPOINT=$MINIO_ENDPOINT

minio_dir="cypress-test-report/cypress/results/"
minio_name="minio"

Expand Down
12 changes: 0 additions & 12 deletions cypress/scripts/nginx

This file was deleted.

0 comments on commit cc3df83

Please sign in to comment.