-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ado-6-ndv-simplify-credentials
* master: (53 commits) fix: Remove anonymous ID from tracking calls (#5099) refactor(core): Add more overloads for string-type node parameters (no-changelog) (#5101) fix(Read Binary File Node): Do not crash the execution when the source file does not exist (#5100) fix: Stop OOM crashes in Execution Data pruning (#5095) feat(editor): Introduce proxy completions to expressions (#5075) fix(Google Sheets Node): Fix for auto-range detection 📚 Update CHANGELOG.md and main package.json to 0.210.1 🔖 Release n8n@0.210.1 ⬆️ Set n8n-editor-ui@0.176.1 and n8n-nodes-base@0.208.1 on n8n 🔖 Release n8n-editor-ui@0.176.1 ⬆️ Set n8n-design-system@0.50.1 on n8n-editor-ui 🔖 Release n8n-design-system@0.50.1 🔖 Release n8n-nodes-base@0.208.1 fix: Pass in the correct server reference to external hooks (no-changelog) (#5094) fix(Google Sheets Node): Append or Update fails for numeric values feat: Add user management invite links without SMTP set up (#5084) fix: Remove annonymous ID (no-changelog) (#5093) 📚 Update CHANGELOG.md and main package.json to 0.210.0 🔖 Release n8n@0.210.0 ⬆️ Set n8n-core@0.150.0, n8n-editor-ui@0.176.0, n8n-nodes-base@0.208.0 and n8n-workflow@0.132.0 on n8n ... # Conflicts: # packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue
- Loading branch information
Showing
342 changed files
with
12,828 additions
and
3,552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
import { randFirstName, randLastName } from '@ngneat/falso'; | ||
import { DEFAULT_USER_EMAIL, DEFAULT_USER_PASSWORD } from '../constants'; | ||
import { SettingsLogStreamingPage } from '../pages'; | ||
|
||
const email = DEFAULT_USER_EMAIL; | ||
const password = DEFAULT_USER_PASSWORD; | ||
const firstName = randFirstName(); | ||
const lastName = randLastName(); | ||
const settingsLogStreamingPage = new SettingsLogStreamingPage(); | ||
|
||
describe('Log Streaming Settings', () => { | ||
before(() => { | ||
cy.resetAll(); | ||
cy.setup({ email, firstName, lastName, password }); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.signin({ email, password }); | ||
}); | ||
|
||
it('should show the unlicensed view when the feature is disabled', () => { | ||
cy.visit('/settings/log-streaming'); | ||
settingsLogStreamingPage.getters.getActionBoxUnlicensed().should('be.visible'); | ||
settingsLogStreamingPage.getters.getContactUsButton().should('be.visible'); | ||
settingsLogStreamingPage.getters.getActionBoxLicensed().should('not.exist'); | ||
}); | ||
|
||
it('should show the licensed view when the feature is enabled', () => { | ||
cy.enableFeature('logStreaming'); | ||
cy.visit('/settings/log-streaming'); | ||
settingsLogStreamingPage.getters.getActionBoxLicensed().should('be.visible'); | ||
settingsLogStreamingPage.getters.getAddFirstDestinationButton().should('be.visible'); | ||
settingsLogStreamingPage.getters.getActionBoxUnlicensed().should('not.exist'); | ||
}); | ||
|
||
it('should show the add destination modal', () => { | ||
cy.visit('/settings/log-streaming'); | ||
settingsLogStreamingPage.actions.clickAddFirstDestination(); | ||
cy.wait(100); | ||
settingsLogStreamingPage.getters.getDestinationModal().should('be.visible'); | ||
settingsLogStreamingPage.getters.getSelectDestinationType().should('be.visible'); | ||
settingsLogStreamingPage.getters.getSelectDestinationButton().should('be.visible'); | ||
settingsLogStreamingPage.getters.getSelectDestinationButton().should('have.attr', 'disabled'); | ||
settingsLogStreamingPage.getters | ||
.getDestinationModalDialog() | ||
.invoke('css', 'width') | ||
.then((widthStr) => parseInt((widthStr as unknown as string).replace('px', ''))) | ||
.should('be.lessThan', 500); | ||
settingsLogStreamingPage.getters.getSelectDestinationType().click(); | ||
settingsLogStreamingPage.getters.getSelectDestinationTypeItems().eq(0).click(); | ||
settingsLogStreamingPage.getters | ||
.getSelectDestinationButton() | ||
.should('not.have.attr', 'disabled'); | ||
settingsLogStreamingPage.getters.getDestinationModal().click(1, 1); | ||
settingsLogStreamingPage.getters.getDestinationModal().should('not.exist'); | ||
}); | ||
|
||
it('should create a destination and delete it', () => { | ||
cy.visit('/settings/log-streaming'); | ||
settingsLogStreamingPage.actions.clickAddFirstDestination(); | ||
cy.wait(100); | ||
settingsLogStreamingPage.getters.getDestinationModal().should('be.visible'); | ||
settingsLogStreamingPage.getters.getSelectDestinationType().click(); | ||
settingsLogStreamingPage.getters.getSelectDestinationTypeItems().eq(0).click(); | ||
settingsLogStreamingPage.getters.getSelectDestinationButton().click(); | ||
settingsLogStreamingPage.getters | ||
.getDestinationNameInput() | ||
.click() | ||
.clear() | ||
.type('Destination 0'); | ||
settingsLogStreamingPage.getters.getDestinationSaveButton().click(); | ||
cy.wait(100); | ||
settingsLogStreamingPage.getters.getDestinationModal().click(1, 1); | ||
cy.reload(); | ||
settingsLogStreamingPage.getters.getDestinationCards().eq(0).click(); | ||
settingsLogStreamingPage.getters.getDestinationDeleteButton().should('be.visible').click(); | ||
cy.get('.el-message-box').should('be.visible').find('.btn--cancel').click(); | ||
settingsLogStreamingPage.getters.getDestinationDeleteButton().click(); | ||
cy.get('.el-message-box').should('be.visible').find('.btn--confirm').click(); | ||
cy.reload(); | ||
}); | ||
|
||
it('should create a destination and delete it via card actions', () => { | ||
cy.visit('/settings/log-streaming'); | ||
settingsLogStreamingPage.actions.clickAddFirstDestination(); | ||
cy.wait(100); | ||
settingsLogStreamingPage.getters.getDestinationModal().should('be.visible'); | ||
settingsLogStreamingPage.getters.getSelectDestinationType().click(); | ||
settingsLogStreamingPage.getters.getSelectDestinationTypeItems().eq(1).click(); | ||
settingsLogStreamingPage.getters.getSelectDestinationButton().click(); | ||
settingsLogStreamingPage.getters | ||
.getDestinationNameInput() | ||
.click() | ||
.clear() | ||
.type('Destination 1'); | ||
settingsLogStreamingPage.getters.getDestinationSaveButton().should('not.have.attr', 'disabled'); | ||
settingsLogStreamingPage.getters.getDestinationSaveButton().click(); | ||
cy.wait(100); | ||
settingsLogStreamingPage.getters.getDestinationModal().click(1, 1); | ||
cy.reload(); | ||
|
||
settingsLogStreamingPage.getters | ||
.getDestinationCards() | ||
.eq(0) | ||
.find('.el-dropdown-selfdefine') | ||
.click(); | ||
cy.get('.el-dropdown-menu').find('.el-dropdown-menu__item').eq(0).click(); | ||
settingsLogStreamingPage.getters.getDestinationSaveButton().should('not.exist'); | ||
settingsLogStreamingPage.getters.getDestinationModal().click(1, 1); | ||
|
||
settingsLogStreamingPage.getters | ||
.getDestinationCards() | ||
.eq(0) | ||
.find('.el-dropdown-selfdefine') | ||
.click(); | ||
cy.get('.el-dropdown-menu').find('.el-dropdown-menu__item').eq(1).click(); | ||
cy.get('.el-message-box').should('be.visible').find('.btn--confirm').click(); | ||
cy.reload(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { BasePage } from './base'; | ||
|
||
export class SettingsLogStreamingPage extends BasePage { | ||
url = '/settings/log-streaming'; | ||
getters = { | ||
getActionBoxUnlicensed: () => cy.getByTestId('action-box-unlicensed'), | ||
getActionBoxLicensed: () => cy.getByTestId('action-box-licensed'), | ||
getDestinationModal: () => cy.getByTestId('destination-modal'), | ||
getDestinationModalDialog: () => this.getters.getDestinationModal().find('.el-dialog'), | ||
getSelectDestinationType: () => cy.getByTestId('select-destination-type'), | ||
getDestinationNameInput: () => cy.getByTestId('subtitle-showing-type'), | ||
getSelectDestinationTypeItems: () => | ||
this.getters.getSelectDestinationType().find('.el-select-dropdown__item'), | ||
getSelectDestinationButton: () => cy.getByTestId('select-destination-button'), | ||
getContactUsButton: () => this.getters.getActionBoxUnlicensed().find('button'), | ||
getAddFirstDestinationButton: () => this.getters.getActionBoxLicensed().find('button'), | ||
getDestinationSaveButton: () => cy.getByTestId('destination-save-button').find('button'), | ||
getDestinationDeleteButton: () => cy.getByTestId('destination-delete-button'), | ||
getDestinationCards: () => cy.getByTestId('destination-card'), | ||
}; | ||
actions = { | ||
clickContactUs: () => this.getters.getContactUsButton().click(), | ||
clickAddFirstDestination: () => this.getters.getAddFirstDestinationButton().click(), | ||
clickSelectDestinationButton: () => this.getters.getSelectDestinationButton().click(), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.