-
Notifications
You must be signed in to change notification settings - Fork 5
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
111 remove public private switch #166
Conversation
const today = new Date().toISOString().slice(0, 10).replace(/-/g, ''); | ||
|
||
beforeEach(() => { | ||
cy.loginUser(homeserverUrl, email, password); |
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.
J'ai fait une version de cy.loginUser sans arguments, pour eviter d'avoir a specifier les defaults. Dans cette PR : #171
(approuuuuuve ma PRRRRR, viennnnns 🐍 )
@@ -35,6 +35,7 @@ getVar('E2E_TEST_USER_HOMESERVER_URL'); | |||
getVar('E2E_TEST_USER_HOMESERVER_SHORT'); | |||
|
|||
export default defineConfig({ | |||
watchForFileChanges : false, |
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.
On veut ca ?
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.
oui sinon, a chaque changement, il relance les tests c'est tres penible
|
||
afterEach(() => { | ||
// todo logout, otherwise the login test is not reliable aby more. | ||
// todo delete room, otherwise the test user will end up with a million identical rooms after a while. |
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.
I have a PR to add this : #170
(apprrrouuuuuuuuuuuuuuve ma PRRRRRRRRR 🐍 😵💫)
@@ -0,0 +1,51 @@ | |||
import Chainable = Cypress.Chainable; | |||
|
|||
export default class RoomUtils { |
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.
alternatively, you could use cy.createRoom
(for better independence between tests) :
tchap-web-v4/cypress/support/client.ts
Lines 40 to 41 in ac8216a
createRoom(options: ICreateRoomOpts): Chainable<string>; | |
/** |
But if it works, fine, let's move forward.
//arrange | ||
render(<TchapJoinRuleSettings {...props} />); | ||
|
||
//assert that spaces option is not here while private and public are |
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.
public is asserted NOT there in the test. Is comment out of date ?
}); | ||
|
||
|
||
function openRoomAccessSettings(){ |
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.
on met ca dans les utils peut etre ? Chepa
</>, | ||
}]; */ | ||
|
||
//tchap : we do not permit to change the type of room, thus display only one option |
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.
can you specify where tchap code ends, as well ? So that we know what's ours and what's not.
/** | ||
* TCHAP : disable space-related options if create space feature is not enabled | ||
*/ | ||
if (ComponentVisibilityCustomisations.shouldShowComponent(UIComponent.CreateSpaces)) { |
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.
as we talked about, it would be better to create a separate flag, like showRooms or something
Co-authored-by: Estelle Comment <[email protected]>
Co-authored-by: Estelle Comment <[email protected]>
What have changed
Tests