Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Frontend
Minds Frontend
  • Project overview
  • Repository
  • Issues 397
  • Merge Requests 60
  • CI / CD
  • Security & Compliance
  • Packages
  • Wiki
  • Snippets
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds FrontendMinds Frontend
  • Merge Requests
  • !666

Open
Opened 2 weeks ago by Olivia Madrid@omadrid
Report abuse

Pro settings e2e

Tests that require changes from Emi to pass:

  • it should update the title and headline (browser tab title currently reads 'Home | Minds')
  • it should allow the user to set light theme for posts (activities not always showing up on feed)
  • it should allow the user to set dark theme for posts (ditto)

Closes #2273

Edited 1 week ago by Olivia Madrid
Request to merge pro-settings-e2e-2273 into master
The source branch is 4 commits behind the target branch
Open in Web IDE
Pipeline #100682767 passed with warnings for 20e77b9f on pro-settings-e2e-2273
              Requires approval from QA. Approved by
              Brian Hatchet
              Brian Hatchet
              Rami Albatal
              Rami Albatal
              Ben Hayward
              Ben Hayward
              Martin Santangelo
              Martin Santangelo
              Guy Thouret
              Guy Thouret
              Xander Miller
              Xander Miller
              Ready to be merged automatically. Ask someone with write access to this repository to merge this request

              Closes #2273

              • Discussion 19
              • Commits 9
              • Pipelines 5
              • Changes 5
              0/3 threads resolved
              • Olivia Madrid @omadrid added Platform::Browser Priority::2 - Normal Product::Pro Squad::Blue Type::E2E scoped labels 2 weeks ago

                added scoped labels

              • Olivia Madrid @omadrid added 1 commit 2 weeks ago

                added 1 commit

                • 0a140e7f - (e2e): WIP pro settings tests

                Compare with previous version

              • Emiliano Balbuena @edgebal mentioned in issue engine#1165 (closed) 1 week ago

                mentioned in issue engine#1165 (closed)

              • Olivia Madrid @omadrid added 11 commits 1 week ago

                added 11 commits

                • 0a140e7f...559f9503 - 7 commits from branch master
                • 787abfb4 - Merge branch 'master' of gitlab.com:minds/front into pro-settings-e2e-2273
                • c9f80d64 - (e2e): test cleanup
                • 4f7db1f1 - Merge branch 'master' of gitlab.com:minds/front into pro-settings-e2e-2273
                • fd5beff2 - (e2e): fix footer contains error, skip post theme tests for now

                Compare with previous version

                Toggle commit list
              • Olivia Madrid @omadrid changed the description 1 week ago

                changed the description

              • Olivia Madrid @omadrid unmarked as a Work In Progress 1 week ago

                unmarked as a Work In Progress

              • Brian Hatchet :speech_balloon: @brianhatchet approved this merge request 1 week ago

                approved this merge request

              • Mark Harding @markeharding added MR::Requires Changes scoped label 6 days ago

                added scoped label

              • Mark Harding
                Mark Harding @markeharding · 6 days ago
                Owner

                @omadrid getting merge conflicts here

              • Guy Thouret
                Guy Thouret @gthouret · 5 days ago
                Developer

                @omadrid I'm unable to test and give approval as credentials for minds_pro_cypress_tests are required and the password is set to empty string in the config.

                Edited by Guy Thouret 5 days ago
              • Olivia Madrid @omadrid added 23 commits 5 days ago

                added 23 commits

                • fd5beff2...6ad11c19 - 22 commits from branch master
                • b06cbc0b - Merge branch 'master' of gitlab.com:minds/front into pro-settings-e2e-2273

                Compare with previous version

              • Olivia Madrid
                Olivia Madrid @omadrid · 5 days ago
                Developer

                @gthouret Ah, yes. To run the tests I've been entering:

                cypress/e2e.sh -h http://localhost:8080 -pu minds_pro_cypress_tests -pp p@ssw0rd -p p@ssw0rd -u minds_pro_cypress_tests

                (e.g. If you've created test user minds_pro_cypress_tests with password p@ssw0rd)

                p.s. I'm not sure how it's supposed to work for regular testing outside of localhost, but that's what I do to get the tests to run. Maybe @benhayward.ben has the official answer?

                • Guy Thouret
                  Guy Thouret @gthouret · 5 days ago
                  Developer

                  Only took an hour to get my stack up and running :face_palm_tone1:

                  I'm getting the 'invalid password' error when trying to create a user with that password!!!

                • Collapse replies
                • Olivia Madrid
                  Olivia Madrid @omadrid · 5 days ago
                  Developer

                  Oh sorry!! I just replaced the password I was using with a generic one for the example, because mine is TOP SECRET :) You can use whatever password you want as long as it complies with the rules

                • Please register or sign in to reply
              • Guy Thouret
                Guy Thouret @gthouret · 5 days ago
                Developer

                Screenshot_2019-12-03_at_11.28.50

              • Guy Thouret
                Guy Thouret @gthouret · 5 days ago
                Developer

                p@ssw0rd has 8 characters, includes upper case, no spaces and even has a special character :thinking:

              • Guy Thouret
                Guy Thouret @gthouret · 5 days ago
                Developer

                Pretty sure this has been widely reported by users so I'll dig in and see what's up.

              • Guy Thouret
                Guy Thouret @gthouret · 5 days ago
                Developer

                It actually doesn't have upper case. Why do we enforce that, that's silly.

              • Guy Thouret
                Guy Thouret @gthouret · 5 days ago
                Developer

                Yep that was it.

                • Guy Thouret
                  Guy Thouret @gthouret · 5 days ago
                  Developer

                  User needs to be pro for this to work...

                  UPDATE entities SET value=9999999999 WHERE column1='pro_expires' AND key='<user_guid>'
                • Collapse replies
                • Olivia Madrid
                  Olivia Madrid @omadrid · 5 days ago
                  Developer

                  Not sure about the snippet but your test user minds_pro_cypress_tests needs to be Pro

                • Please register or sign in to reply
                • Guy Thouret
                  Guy Thouret @gthouret · 5 days ago
                  Developer

                  Also, e2e tests run about 100x faster if you enable aot for the build. I should really enable aot by default on our builds.

                • Collapse replies
                • Olivia Madrid
                  Olivia Madrid @omadrid · 5 days ago
                  Developer

                  Ooh! I like faster!! Does this mean I enter npm run serve-dev --aot?

                • Guy Thouret
                  Guy Thouret @gthouret · 5 days ago
                  Developer

                  You have to set an env var to fix the javascript engine's memory manager and manually edit package.json to add --aot to the serve-dev line.

                  Very slightly longer compile time is the trade off for not feeling like you're wading through treacle every time you load the app.

                  export NODE_OPTIONS='--max-old-space-size=2048' (Every time you open a new terminal session unless you add to ~/.bashrc or whatever zsh is using now.)

                  diff --git a/package.json b/package.json
                  index 9908a5a1..08458090 100644
                  --- a/package.json
                  +++ b/package.json
                  @@ -10,7 +10,7 @@
                       "build": "ng build --prod",
                       "prebuild-dev": "gulp build.sass --deploy-url=http://localhost/en",
                       "build-dev": "ng build --output-path dist/en --deploy-url=/en/ --watch=true --poll=800",
                  -    "serve-dev": "ng serve --host=0.0.0.0 --deploy-url=/en/ --configuration=hmr --hmr --poll=800 --progress",
                  +    "serve-dev": "ng serve --host=0.0.0.0 --deploy-url=/en/ --configuration=hmr --hmr --poll=800 --progress --aot",
                       "test": "ng test",
                       "lint": "ng lint",
                       "e2e": "cypress run --debug",
                • Please register or sign in to reply
              • Guy Thouret
                Guy Thouret @gthouret · 5 days ago
                Developer

                Completed in 97.87s - failed across the board.

                Does this require a specific backend? I'm running against latest master backend.

              • Olivia Madrid
                Olivia Madrid @omadrid · 5 days ago
                Developer

                Latest master should work... You have Pro enabled on the test user, right?

                At least one of the tests is expected to fail (unless Emi has already made a change to fix it)

                Edited by Olivia Madrid 5 days ago
              • Guy Thouret
                Guy Thouret @gthouret · 5 days ago
                Developer

                Yes I logged in as the test user and it had the pro badge on the channel page - Unless there's more to enabling pro than just setting a pro_expires way into the future?!?

              • Olivia Madrid @omadrid added 3 commits 4 days ago

                added 3 commits

                • 80e43c8c - 1 commit from branch master
                • 2e2762d7 - Merge branch 'master' of gitlab.com:minds/front into pro-settings-e2e-2273
                • 20e77b9f - (e2e): skip failing test that needs a fix from Emi before it works

                Compare with previous version

              • Brian Hatchet :speech_balloon: @brianhatchet approved this merge request 17 minutes ago

                approved this merge request

              • Brian Hatchet :speech_balloon: @brianhatchet assigned to @benhayward.ben 16 minutes ago

                assigned to @benhayward.ben

              • Brian Hatchet :speech_balloon: @brianhatchet assigned to @xander-miller 16 minutes ago

                assigned to @xander-miller

              • Brian Hatchet :speech_balloon: @brianhatchet assigned to @gthouret 16 minutes ago

                assigned to @gthouret

              • Brian Hatchet :speech_balloon: @brianhatchet unassigned @benhayward.ben 15 minutes ago

                unassigned @benhayward.ben

              • Brian Hatchet
                Brian Hatchet :speech_balloon: @brianhatchet · 14 minutes ago
                Developer

                The tests are passing and the code looks good. Just need @gthouret to sign off on his feedback and get Xander's approval and we can merge it in.

              Please register or sign in to reply
              2 Assignees
              Xander Miller's avatar
              Guy Thouret's avatar
              None
              Milestone
              None
              Time tracking
              No estimate or time spent
              6
              Labels
              MR::Requires Changes Platform::Browser Priority::2 - Normal Product::Pro Squad::Blue Type::E2E
              Lock merge request
              Unlocked
              11
              11 participants
              user avatar
              Rami Albatal
              user avatar
              Ben Hayward
              user avatar
              Martin Santangelo
              user avatar
              Guy Thouret
              user avatar
              Xander Miller
              user avatar
              Emiliano Balbuena
              user avatar
              Marcelo Rivera
              Reference: minds/front!666