-
Notifications
You must be signed in to change notification settings - Fork 6
Vite 5.4.20 #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Vite 5.4.20 #106
Changes from all commits
c4f5309
58c2cd5
4e73721
1b60f25
c4f03fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| /* eslint-disable no-unused-vars */ | ||
| // Copyright 2023 DDS Permissions Manager Authors | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
|
@@ -11,14 +12,13 @@ | |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
| import { defineConfig } from "cypress"; | ||
| import { defineConfig } from 'cypress'; | ||
|
|
||
| export default defineConfig({ | ||
| e2e: { | ||
| setupNodeEvents(on, config) { | ||
| // implement node event listeners here | ||
| }, | ||
| baseUrl: 'http://localhost:8080' | ||
|
|
||
| }, | ||
| }); | ||
| e2e: { | ||
| setupNodeEvents(on, config) { | ||
| // implement node event listeners here | ||
| }, | ||
| baseUrl: 'http://localhost:8080' | ||
| } | ||
|
Comment on lines
+18
to
+23
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like tabs are used for indentation instead of spaces in these and the other places. I think spaces are preferred for consistent rendering across editors; the current code seems using spaces as well.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tab is generated from |
||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,50 +11,53 @@ | |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
| /* global cy, describe, beforeEach, it */ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line appears in multiple files but I'm not sure if it should be included in the comment.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is used to silent lint errors. Without it, you get the following lint errors |
||
| /// <reference types="Cypress" /> | ||
|
|
||
| describe('Action Interval Capabilities', () => { | ||
| beforeEach(() => { | ||
| cy.login('unity-admin', 'password'); | ||
| cy.intercept('http://localhost:8080/api/token_info').as('tokenInfo'); | ||
| cy.visit('http://localhost:8080/'); | ||
| cy.wait('@tokenInfo'); | ||
| }); | ||
| beforeEach(() => { | ||
| cy.login('unity-admin', 'password'); | ||
| cy.intercept('http://localhost:8080/api/token_info').as('tokenInfo'); | ||
| cy.visit('http://localhost:8080/'); | ||
| cy.wait('@tokenInfo'); | ||
| }); | ||
|
|
||
| it('should add a new action interval to group Alpha.', () => { | ||
| cy.visit('/action-intervals'); | ||
| it('should add a new action interval to group Alpha.', () => { | ||
| cy.visit('/action-intervals'); | ||
|
|
||
| cy.get('[data-cy="group-input"]') | ||
| .type("alpha"); | ||
| cy.get('[data-cy="group-input"]').type('alpha'); | ||
|
|
||
| cy.wait(500); | ||
| cy.wait(500); | ||
|
|
||
| cy.get('[data-cy="group-input"]').type('{downArrow}').type('{enter}'); | ||
| cy.get('[data-cy="group-input"]').type('{downArrow}').type('{enter}'); | ||
|
|
||
| cy.get('[data-cy="add-action-interval"]') | ||
| .click(); | ||
| cy.get('[data-cy="add-action-interval"]').click(); | ||
|
|
||
| cy.get('[data-cy="action-interval-name-input"]').type('First Action Interval'); | ||
|
|
||
| cy.get('[data-cy="action-interval-name-input"]').type('First Action Interval'); | ||
| cy.get(':nth-child(3) > .date-time-field') | ||
| .type('{selectall}{backspace}') | ||
| .type('2023-10-01') | ||
| .type('{enter}'); | ||
| cy.get(':nth-child(4) > .date-time-field') | ||
| .type('{selectall}{backspace}') | ||
| .type('2023-10-11') | ||
| .type('{enter}'); | ||
|
|
||
| cy.get(':nth-child(3) > .date-time-field').type('{selectall}{backspace}').type('2023-10-01').type('{enter}'); | ||
| cy.get(':nth-child(4) > .date-time-field').type('{selectall}{backspace}').type('2023-10-11').type('{enter}'); | ||
| cy.get('[data-cy="button-add-action-interval"]').click(); | ||
|
|
||
| cy.get('[data-cy="button-add-action-interval"]').click(); | ||
| cy.get('[data-cy="action-interval-name"]').contains('First Action Interval'); | ||
| }); | ||
|
|
||
| cy.get('[data-cy="action-interval-name"]').contains('First Action Interval'); | ||
| }); | ||
| it('should delete First Action Interval', () => { | ||
| cy.visit('/action-intervals'); | ||
|
|
||
| it('should delete First Action Interval', () => { | ||
| cy.visit('/action-intervals'); | ||
| cy.get('[data-cy="group-input"]').type('alpha'); | ||
|
|
||
| cy.get('[data-cy="group-input"]') | ||
| .type("alpha"); | ||
| cy.wait(500); | ||
|
|
||
| cy.wait(500); | ||
| cy.get('[data-cy="delete-action-interval-icon"]').first().click(); | ||
|
|
||
| cy.get('[data-cy="delete-action-interval-icon"]').first().click(); | ||
|
|
||
| cy.get('[data-cy="delete-topic"]').click(); | ||
| }); | ||
| cy.get('[data-cy="delete-topic"]').click(); | ||
| }); | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| /* global cy, describe, beforeEach, it */ | ||
| // Copyright 2023 DDS Permissions Manager Authors | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
|
@@ -11,33 +12,29 @@ | |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
| describe('Users capabilities', () => { | ||
| beforeEach(() => { | ||
| cy.login('unity-admin', 'password'); | ||
| cy.intercept('http://localhost:8080/api/token_info').as('tokenInfo'); | ||
| cy.visit('http://localhost:8080/'); | ||
| cy.wait('@tokenInfo'); | ||
| }); | ||
|
|
||
| it('should add a new user', () => { | ||
| cy.visit('/users'); | ||
|
|
||
| cy.get('[data-cy="group-input"]') | ||
| .type("alpha"); | ||
|
|
||
| cy.wait(500); | ||
|
|
||
| cy.get('[data-cy="group-input"]').type('{downArrow}').type('{enter}'); | ||
|
|
||
| cy.get('[data-cy="add-user"]') | ||
| .click(); | ||
|
|
||
| cy.get('[data-cy="email-input"]') | ||
| .type("[email protected]"); | ||
|
|
||
| cy.get('[data-cy="button-add-user"]') | ||
| .click(); | ||
|
|
||
| cy.get('td').should('contain.text', '[email protected]'); | ||
| }); | ||
| }); | ||
| describe('Users capabilities', () => { | ||
| beforeEach(() => { | ||
| cy.login('unity-admin', 'password'); | ||
| cy.intercept('http://localhost:8080/api/token_info').as('tokenInfo'); | ||
| cy.visit('http://localhost:8080/'); | ||
| cy.wait('@tokenInfo'); | ||
| }); | ||
|
|
||
| it('should add a new user', () => { | ||
| cy.visit('/users'); | ||
|
|
||
| cy.get('[data-cy="group-input"]').type('alpha'); | ||
|
|
||
| cy.wait(500); | ||
|
|
||
| cy.get('[data-cy="group-input"]').type('{downArrow}').type('{enter}'); | ||
|
|
||
| cy.get('[data-cy="add-user"]').click(); | ||
|
|
||
| cy.get('[data-cy="email-input"]').type('[email protected]'); | ||
|
|
||
| cy.get('[data-cy="button-add-user"]').click(); | ||
|
|
||
| cy.get('td').should('contain.text', '[email protected]'); | ||
| }); | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,28 +11,26 @@ | |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
| /* global cy, describe, beforeEach, it */ | ||
| /// <reference types="Cypress" /> | ||
|
|
||
| describe('Super users capabilities', () => { | ||
| beforeEach(() => { | ||
| cy.login('unity-admin', 'password'); | ||
| cy.intercept('http://localhost:8080/api/token_info').as('tokenInfo'); | ||
| cy.visit('http://localhost:8080/'); | ||
| cy.wait('@tokenInfo'); | ||
| }); | ||
|
|
||
| it('should add a new super user', () => { | ||
| cy.visit('/users'); | ||
| beforeEach(() => { | ||
| cy.login('unity-admin', 'password'); | ||
| cy.intercept('http://localhost:8080/api/token_info').as('tokenInfo'); | ||
| cy.visit('http://localhost:8080/'); | ||
| cy.wait('@tokenInfo'); | ||
| }); | ||
|
|
||
| cy.get('[data-cy="add-super-user"]') | ||
| .click(); | ||
| it('should add a new super user', () => { | ||
| cy.visit('/users'); | ||
|
|
||
| cy.get('[data-cy="email-input"]') | ||
| .type("[email protected]"); | ||
| cy.get('[data-cy="add-super-user"]').click(); | ||
|
|
||
| cy.get('[data-cy="button-add-super-user"]') | ||
| .click(); | ||
| cy.get('[data-cy="email-input"]').type('[email protected]'); | ||
|
|
||
| cy.get('td').should('contain.text', '[email protected]'); | ||
| }); | ||
| cy.get('[data-cy="button-add-super-user"]').click(); | ||
|
|
||
| cy.get('td').should('contain.text', '[email protected]'); | ||
| }); | ||
| }); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this comment be deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is used for silent lint errors, without it
✖ 2 problems (2 errors, 0 warnings)