Repository navigation
test: add end-to-end (e2e) tests for web - #1009
Open
harishr-testmuai wants to merge 1 commit into
Open
harishr-testmuai wants to merge 1 commit into
harishr-testmuai wants to merge 1 commit into
Conversation
Click through the setup wizard, signing in and adding a link in a real browser. Each test is a plain-English _test.md file with recorded steps and an exported Playwright version.
Author
|
The tests are written in plain English with Kane CLI. Disclosure: I work at TestMu AI, which makes Kane CLI. Happy to move the folder or trim the recorded files if you'd prefer a lighter footprint. We give open source projects free licenses to create, run and maintain their test suites; it's an initiative to promote open source contributions from our side. If that would help LinkStack, email me at harishr@testmuai.com. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds browser end-to-end tests under
e2e/kane/, with no changes to app code:setup_test.md: go through the first-run setup wizard (language, dependency check, SQLite, admin account, page settings), sign in, and check the dashboard greets@alexmorganwith 0 linkslink_test.md: sign in, add a GitHub link from the predefined sites, and check it on the Links page and on the public@alexmorganpageoutput-<test>/: recorded steps so reruns replay quickly, aResult.mdper test, and an exported Playwright (JavaScript) version of each teste2e/kane/README.md: how to run themThe tests run against the official
linkstackorg/linkstackDocker image on port 8190, starting from a new install. Both pass, on the first run and on three replays from a fresh install. Nothing is added undertests/, so PHPUnit is unaffected. This is part of adding end to end (e2e) test for web and mobile coverage to open source projects.One thing to flag:
release.ymlzips everything except.git,.githubandREADME.md, soe2e/would end up in the release zips. I didn't want to touch the release workflow without asking; if you'd like, I can addrm -r "e2e"next to the existingrm -r ".github"line.