Frontend: Rename cypress/ to e2e/
This commit is contained in:
parent
e249fb1de0
commit
496c31e4f4
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -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"
|
||||||
|
},
|
||||||
}
|
}
|
@ -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"
|
||||||
}
|
}
|
||||||
|
@ -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');
|
||||||
});
|
});
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
Loading…
x
Reference in New Issue
Block a user