Frontend: Rename cypress/ to e2e/

This commit is contained in:
ADAMJR 2021-11-10 19:22:04 +00:00
parent e249fb1de0
commit 496c31e4f4
30 changed files with 12 additions and 5 deletions

View File

@ -3,4 +3,7 @@
"prettier.singleQuote": true, "prettier.singleQuote": true,
"typescript.preferences.quoteStyle": "single", "typescript.preferences.quoteStyle": "single",
"editor.tabSize": 2, "editor.tabSize": 2,
"material-icon-theme.files.associations": {
"*.tests.ts": "test-ts"
},
} }

View File

@ -2,5 +2,12 @@
"env": { "env": {
"PORT": 4200, "PORT": 4200,
"URL": "http://localhost" "URL": "http://localhost"
} },
"fixturesFolder": "e2e/fixtures",
"integrationFolder": "e2e/integration",
"pluginsFile": "e2e/plugins/index.ts",
"screenshotsFolder": "e2e/screenshots",
"videosFolder": "e2e/videos",
"downloadsFolder": "e2e/downloads",
"supportFile": "e2e/support/index.ts"
} }

View File

@ -9,11 +9,10 @@ describe('channel-settings', () => {
before(() => { before(() => {
cy.get('.sidebar-tabs [data-icon="cog"]').first().click(); cy.get('.sidebar-tabs [data-icon="cog"]').first().click();
cy.contains('Perms').click(); cy.contains('Perms').click();
cy.contains('Add role...').click();
}); });
it('deny send messages in channel, opens save dialog', () => { it('deny send messages in channel, opens save dialog', () => {
cy.get('[class*="option"]').contains('@everyone').click(); cy.get('#SEND_MESSAGES').click({ force: true });
cy.get('#SEND_MESSAGES').click({ force: true }); cy.get('#SEND_MESSAGES').click({ force: true });
cy.contains('unsaved changes').should('be.visible'); cy.contains('unsaved changes').should('be.visible');
@ -23,8 +22,6 @@ describe('channel-settings', () => {
cy.contains('Save').click(); cy.contains('Save').click();
cy.contains('Overview').click(); cy.contains('Overview').click();
cy.contains('Perms').click(); cy.contains('Perms').click();
cy.contains('Add role...').click();
cy.get('[class*="option"]').contains('@everyone').click();
cy.get('#SEND_MESSAGES[value=off]').should('exist'); cy.get('#SEND_MESSAGES[value=off]').should('exist');
}); });