serlo / frontend-e2e-tests Goto Github PK
View Code? Open in Web Editor NEWintegration tests for serlo.org
License: Apache License 2.0
integration tests for serlo.org
License: Apache License 2.0
e.g. impressum at the moment
this is a change in behaviour and need to be adapted here:
frontend-e2e-tests/tests/400-serlo-editor.ts
Line 719 in 2ea0cd3
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:
Cons:
Note:
the current test approach is not reliable, as a failure will leave the system in a bad state.
Probably detect the state and fix it
again, on localhost this means we are testing staging
trying it out + document findings.
not quite sure why there are these parameters
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).
e.g. politk or in other languages
check for secondary menu
including exercise folders
loading team page is often too slow and will timeout the server
so I don't have to look it up every time
probably related to sso changes.
Make it more reliable.
something changed and the test is breaking - previous fix was not enough ...
The repository also needs to be migrated to use yarn
as a package manager ✨
even a 20s timeout is not enough ... weird.
make add explicit check for right page and then wait longer after it
write comment
edit comment
archive comment
delete comment
But: It only makes sense if we can actually access the language version!
related to #17
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.
there is no good way of going to language domain yet, because we have to change the host, but localhost is on a subdomain (csr is working, though)
as we have here: https://de.serlo-staging.dev/mathe/54749/54749 (even if it's not intended ...)
It should contain "Überarbeiten"
@Entkenntnis this uses yarn v1, right?
Should we leave it there or also move to v3?
add test case to check if solution revisions are visible: serlo/frontend#2614
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.