Giter Site home page Giter Site logo

frontend-e2e-tests's People

Contributors

astermiha avatar codingdive avatar elbotho avatar eliflores avatar entkenntnis avatar hejtful avatar hugotiburtino avatar kulla avatar larstheglidingsquirrel avatar yanncloud avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

yanncloud

frontend-e2e-tests's Issues

RFC: Behavior Driven Development

The way the tests are written now are good for the purpose, but I was thinking if we want to slowly change the way we write to a more BDD-like style.
See https://codecept.io/bdd/#what-is-behavior-driven-development

Instead of using I.click('gerade eben'), I.click('Speicher') we would write I.assertThatRevisionWasNewlyCreated() I.saveMyWork().
Besides that we could use the syntax Given, When, Then.
Pros:

  • more readability

Cons:

  • more complexity in code

Note:

  • another subject of discussion is if we want to change the syntax to use Gherkin (see link above), but let's discuss it after closing this RFC.

Test user flows

Write test cases for registration, verification, recovery and logout.

Testing the OAuth paths will need a different approach and maybe only possible locally (see serlo/local-dev-env).

Add tests for learner

  • single choice / multiple choice
  • video, geogebra, injections
  • viewing solutions
  • taxonomy
  • course, course navigation
  • exercise folders
  • viewing comments
  • subject landing pages
  • breadcrumbs

flakyness

loading team page is often too slow and will timeout the server

Split the editor tests into multiple smaller files

Currently, there is only one 400-serlo-editor.ts file, and it's almost 1000 lines long. It's time to split it into smaller files, to make it easier to work with the editor tests.

The new files should encapsulate plugins or other UI segments. For example:

400-serlo-editor.ts # Editor loads and all the basic elements are present
410-plugin-toolbar.ts # Plugin toolbar default options
420-plugin-text.ts # Text plugin tests (including plugin toolbar options specific for plugin test)
...

In general, whoever takes the issue can decide how exactly the files should be split and ordered.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.