running 6 identical tests. for 2 of them I.amOnPage() takes you to the desired page... but then times out because it is impossible to load the desired page. screenshots confirm the desired page is loading. wtf?
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 18/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript, node.js
- 領域
- testing-qa
調査の方向性
pages/login.js から始め、特に I.amOnPage の呼び出しと、waitForNavigation: "networkidle0" および getPageTimeout: 60000 を使用している Puppeteer の設定を確認します。報告されている 401 および 409 のブラウザーエラーを、Puppeteer の LifecycleWatcher のタイムアウトと併せて調査します。Done では、再現可能な原因を特定し、失敗しているユーザーテストに対する検証済みのナビゲーション動作を定義する必要があります。
索引モデルが issue の本文から書いたものです。
説明
What are you trying to achieve?
I am writing automated tests. I have 3 user test suites and 3 admin test suites. they are identical except for passwords. they go to the SAME page where they run the EXACT SAME tests. I am running them on gitlab where the admin tests have 0 issue. but the user tests fail. I am currently trying to make the I.amOnPage() method to work. but it does not. I am currently testing some jira plugins and just assumed it was an Atlassian issue. it is not. I log into atlassian and I redirect to the space where my content is hosted but codeceptjs fails because it says that space cannot be loaded. when I check the screenshots I see that the page was in fact loaded. there is 0 doubt about it. the admin tests and user tests are exactly identical and yet the user cannot even load the space in confluence. I am currently using 60 second timeouts to load the page but still the page cannot load. why? what is going on?
What do you get instead?
I get an error saying that it is impossible to navigate to this confluence space. this is the error Navigation timeout of 60000 ms exceeded. I download the artifacts from the job and I open the screenshot and see that I am in fact on the desired page. there is 0 doubt about it. I am on the right page. I am running identical tests and yet for some reason codeceptjs refuses to navigate to the page.
Provide console output if related. Use
--verbosemode for more details.
I am on page "https://artemis-staging.atlassian.net/wiki/spaces/AS/overview"
89 › [Url] https://artemis-staging.atlassian.net/wiki/spaces/AS/overview
90 › [Browser:Warning] WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.JSHandle:WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.
91 › [Browser:Warning] WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.JSHandle:WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.
92 › [Browser:Warning] WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.JSHandle:WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.
93 › [Browser:Warning] WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.JSHandle:WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.
94 › [Browser:Error] Failed to load resource: the server responded with a status of 401 ()
95 › [Browser:Error] Failed to load resource: the server responded with a status of 401 ()
96 › [Browser:Error] Failed to load resource: the server responded with a status of 401 ()
97 › [Browser:Error] Failed to load resource: the server responded with a status of 401 ()
98 › [Browser:Warning] Deprecation notice: Accessing Env through metalTypes will soon be deprecated.JSHandle:Deprecation notice: Accessing Env through metalTypes will soon be deprecated.
99 › [Browser:Warning] WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.JSHandle:WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.
100 › [Browser:Error] Failed to load resource: the server responded with a status of 409 ()
101 › [Browser:Error] Failed to load resource: the server responded with a status of 409 ()
102 › [Browser:Error] Failed to load resource: the server responded with a status of 409 ()
103 › [Browser:Error] Failed to load resource: the server responded with a status of 409 ()
104 › [Browser:Warning] AJS's create element functionality has been deprecated since 5.9.0.
105No alternative will be provided.
106Use document.createElement() or jQuery.parseHTML(), or preferably use a templating library.JSHandle:AJS's create element functionality has been deprecated since 5.9.0.
107No alternative will be provided.
108Use document.createElement() or jQuery.parseHTML(), or preferably use a templating library.
109 › [Browser:Warning] DEPRECATED JS - Dialog has been deprecated since 6.0.6 and will be removed in a future release. Use require('confluence-create-content/space-blueprint')
110 at HTMLDocument.<anonymous> (https://d3i2khpa91nejt.cloudfront.net/artemis-staging.atlassian.net/wiki/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-1699667819/h/b02826bf95bb751002bcca6ac1cadcc1/_/download/contextbatch/js/_super/batch.js?externals=__local-default__&locale=en-US:376:136)JSHandle:DEPRECATED JS - Dialog has been deprecated since 6.0.6 and will be removed in a future release. Use require('confluence-create-content/space-blueprint') JSHandle:
111 at HTMLDocument.<anonymous> (https://d3i2khpa91nejt.cloudfront.net/artemis-staging.atlassian.net/wiki/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-1699667819/h/b02826bf95bb751002bcca6ac1cadcc1/_/download/contextbatch/js/_super/batch.js?externals=__local-default__&locale=en-US:376:136)
112 › [Browser:Log] Finished loading Autocomplete base, Macro browser, JIM, Jira chart pluginJSHandle:Finished loading Autocomplete base, Macro browser, JIM, Jira chart plugin
113 › [Browser:Error] Failed to load resource: the server responded with a status of 401 ()
114 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
115 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
116 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
117 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
118 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
119 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
120 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
121 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
122 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
123 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
124 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
125 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
126 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
127 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
128 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
129 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
130 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
131 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
132 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
133 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
134 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
135 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
136 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
137 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
138 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
139 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
140 [1] Error | TimeoutError: Navigation timeout of 60000 ms exceeded
141 [1] Starting <teardown> session
142 [1] <teardown> Stopping recording promises
143 › <screenshotOnFail> Test failed, try to save a screenshot
144 › Screenshot is saving to /builds/ameen3/html-macro-user-tests/output/user_inserts_text_and_html_macro.failed.png
145 ✖ FAILED in 41178ms
146 [2] Starting recording promises
147-- FAILURES:
148 1) example
149 user inserts text and html macro:
150 Navigation timeout of 60000 ms exceeded
151 at /builds/ameen3/html-macro-user-tests/node_modules/puppeteer/lib/cjs/puppeteer/common/LifecycleWatcher.js:106:111
152
153 Scenario Steps:
154 - I.amOnPage("https://artemis-staging.atlassian.net/wiki/spaces/AS/overview") at Object.login (./pages/login.js:20:11)
155 - I.wait(3) at Object.login (./pages/login.js:19:11)
156 - I.pressKey("Enter") at Object.login (./pages/login.js:18:11)
157 - I.wait(2) at Object.login (./pages/login.js:17:11)
158 - I.fillField("#password", "ArtemisFun123") at Object.login (./pages/login.js:16:11)
159 - I.wait(1) at Object.login (./pages/login.js:15:11)
160 - I.pressKey("Enter") at Object.login (./pages/login.js:14:11)
161 - I.wait(1) at Object.login (./pages/login.js:13:11)
162 - I.fillField("#username", "test1artemis@artemissoftware.net") at Object.login (./pages/login.js:12:11)
163 - I.amOnPage("https://id.atlassian.com/login") at Object.login (./pages/login.js:11:11)
164
here is the screenshot. it is on the page it is supposed to navigate to. I am running these tests in multiple places and all of them navigate to this page, but only 1 set of user tests fails to navigate to this page. why? what is going on?

Provide test source code if related
const { I } = inject();
const loginURL = process.env.LOGINURL
const username = process.env.USERNAME
const password = process.env.PASSWORD
const redirectURL = process.env.REDIRECTURL
module.exports = {
login(){
I.amOnPage(loginURL);
// this works with 0 issue
I.fillField('#username', username);
I.wait(1);
I.pressKey('Enter');
I.wait(1);
I.fillField('#password', password);
I.wait(2);
I.pressKey('Enter');
I.wait(3);
I.amOnPage(redirectURL);
// this fails every time and yes it does successfully log ini
I.wait(10);
}
};
Details
- CodeceptJS version: 3.0.4
- NodeJS Version: 14.15.4
- Operating System: macOS Big Sur version 11.2.1
- puppeteer: 7.0.1
- @codeceptjs/helper: 1.0.2
- Configuration file:
exports.config = {
tests: './tests/test_test.js',
output: './output/',
helpers: {
Puppeteer: {
show: false,
waitForNavigation: "networkidle0",
getPageTimeout: 60000,
chrome: {
"args": ["--no-sandbox", "--disable-setuid-sandbox", '--disable-web-security',
'--disable-features=IsolateOrigins,site-per-process']
}
},
PageObject: {
require: './helpers/pageobject_helper.js',
},
},
include: {
I: './steps_file.js',
login: './pages/login.js',
confluence: './pages/confluence.js',
editor: './pages/editor.js',
},
bootstrap: null,
mocha: {},
name: 'html macro admin tests'
};
- 主要言語
- JavaScript
- スター
- 4.2k
- フォーク
- 756
- 平均マージ
- 2日 9時間
- マージ済み PR(30日)
- 16
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codeceptjs/CodeceptJS のほかの issue
-
stale
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
codeceptjs/CodeceptJS#5420 · コメント 1 件 ·
-
stale
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
codeceptjs/CodeceptJS#5358 · コメント 1 件 ·
-
stale
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
codeceptjs/CodeceptJS#4958 · コメント 10 件 · リアクション 2 件 ·
-
stale
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
codeceptjs/CodeceptJS#4778 · コメント 3 件 ·
-
stale
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
codeceptjs/CodeceptJS#5618 · コメント 1 件 ·
codeceptjs/CodeceptJS の issue をすべて見る
似ている issue
-
ai-observability bug team/ai-observability
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
AllTheMods/ATM-10-L#19 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SignalK/n2k-signalk#345 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
JuliaPluto/PlutoPlotly.jl#72 ·