-
Notifications
You must be signed in to change notification settings - Fork 150
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
Playwright suite on CI + me/todo/autocomplete specs #666
Changes from 117 commits
1ba332e
9206110
336f6cb
e13a256
712f2cb
d50de72
835c014
0f7a987
ab59cd6
516784a
7a37280
37ee3de
6059bfb
5341060
1a4e957
3a1cf0f
aa04abd
2e09f01
4baacde
9755ff6
80da990
5c72c6b
4c04fb1
e50225e
cfb010f
e3412ac
2ec71ad
e875642
74c6af4
d45dcee
828be6a
ad2aecf
6c3f477
ae1826b
5fb1dea
1b7f42e
7d6d978
4024d9b
d7234d9
c1e7c95
90257f8
8f36cd2
b840c2e
d40e17e
11554b6
b963909
6c68e87
266f1ee
678a1aa
7c7ec4f
8fdf456
b4b02eb
ea8a188
6a0b226
1808905
4df5cc9
9a8a92a
33e6251
11c4034
08f8a20
a25c3c2
e50edcd
7a9abdc
5c1e13d
3812056
1ca9377
050dc15
848d9ff
dafbb06
db20a9c
e1d34a2
f6bcbe9
bf533e1
d7e4591
90200b5
ae77466
6832c74
0c8e871
09c62fb
3b5f584
7d4e7c8
393ffa7
e499d35
a652681
4f7fafe
57eefdb
07fdaef
ec8ba8a
765577a
d5ba685
a110f33
b81b834
f30d99a
6f4c34f
8b44986
824faca
1a9c03d
2ddf651
f34ce51
eb78faf
9ca62af
751eb04
7ba0bb2
d24ed76
e148813
68d9910
7d54e9a
8dcb658
545af9e
0ab6398
4e7cc75
d0df667
fb7a48a
3d0473e
e20eed4
ffb9ad7
c9dc7ca
aea58c9
7f8324a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ dist/ | |
|
||
# Jetbrains | ||
.idea/ | ||
|
||
_debug | ||
trilopin marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
GO_BUILD_FLAGS ?= | ||
|
||
# Ensure that go is installed. Note that this is independent of whether or not a server is being | ||
# built, since the build script itself uses go. | ||
ifeq ($(GO),) | ||
$(error "go is not available: see https://golang.org/doc/install") | ||
endif | ||
|
||
# Ensure that the build tools are compiled. Go's caching makes this quick. | ||
$(shell cd build/manifest && $(GO) build -o ../bin/manifest) | ||
$(shell cd build/manifest && $(GO) build -buildvcs=false $(GO_BUILD_FLAGS) -o ../bin/manifest) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mickmister, this comes from your changes, is it needed? what's the goal? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was originally to have the workflow runner be able to build the plugin in a docker container. This can be removed as that's not how we're running the tests. |
||
|
||
# Ensure that the deployment tools are compiled. Go's caching makes this quick. | ||
$(shell cd build/pluginctl && $(GO) build -o ../bin/pluginctl) | ||
$(shell cd build/pluginctl && $(GO) build -buildvcs=false $(GO_BUILD_FLAGS) -o ../bin/pluginctl) | ||
|
||
# Extract the plugin id from the manifest. | ||
PLUGIN_ID ?= $(shell build/bin/manifest id) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"extends": [ | ||
"../../webapp/.eslintrc.json" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried to extend from mattermost-server/e2e-tests/.eslintrc.json but has no rules at all, and missed most of the points I wanted to cover. That's why I extended from plugin/webapp/.eslintrc.json |
||
], | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.ts"], | ||
"plugins": ["import"], | ||
"parser": "@typescript-eslint/parser", | ||
"rules": { | ||
"import/no-unresolved": "off", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this shouldn't be here but fails with custom imports mapped in tsconfig.json There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this cause other issues with linting? e.g. something that has to do with the type that was imported. This may be caught by the typescript compiler instead, though CI is not running checks with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a problem only in CI? If so, I think we'll need to clone the webapp repo during linting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added tsc to CI There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. tsc/lint are done after cloning webapp repo in setup-environment. It happened on CI and locally |
||
"max-nested-callbacks": "off", | ||
"no-shadow": "off", | ||
"@typescript-eslint/no-shadow": "error" | ||
} | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
screenshots | ||
playwright-report | ||
test-results | ||
.auth-user.json | ||
.eslintcache |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# export MOCK_OAUTH_ACCESS_TOKEN= | ||
|
||
# export MM_SERVICESETTINGS_SITEURL= | ||
# export MM_PLUGIN_ID= | ||
# export OAUTH_SERVER_PORT= |
srkgupta marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/* eslint-disable no-console */ | ||
/* eslint-disable no-process-exit */ | ||
/* eslint-disable no-process-env */ | ||
require('dotenv').config(); | ||
|
||
import {ExpiryAlgorithms, makeOAuthServer} from './mock_oauth_server'; | ||
|
@@ -8,7 +11,7 @@ if (!mockOAuthAccessToken) { | |
process.exit(0); | ||
} | ||
|
||
const defaultAuthorizePrefix = '/login/oauth' // Used by GitHub | ||
const defaultAuthorizePrefix = '/login/oauth'; // Used by GitHub | ||
const authorizeURLPrefix = process.env.OAUTH_AUTHORIZE_URL_PREFIX || defaultAuthorizePrefix; | ||
|
||
const mattermostSiteURL = process.env.MM_SERVICESETTINGS_SITEURL || 'http://localhost:8065'; | ||
|
@@ -24,5 +27,6 @@ const app = makeOAuthServer({ | |
|
||
const port = process.env.OAUTH_SERVER_PORT || 8080; | ||
app.listen(port, () => { | ||
// eslint-disable-next-line no-console | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can probably just get rid of this file. It's used to stand up the oauth server separate from the tests, but it's not ever used like that |
||
console.log(`Mock OAuth server listening on port ${port}`); | ||
}); |
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.
Note that moving this logic here could make the test fail on a local machine I think
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.
it was already handled in patchConfig, removed from here