silly-student-97216
02/06/2023, 8:40 PMit(${event.u.user} is NOT able to create an app by graphQL "createOneApp", () => {
cy.createOneApp(appName, event.u.user, (response: { status: any; body: any }) => {
expect(response.status).to.eq(403);
expect(response.body.data).eq(null);
assert.equal(response.body.errors[0].message, 'Forbidden resource');
});
});
jolly-fish-24410
02/06/2023, 11:28 PMfaint-ocean-92094
02/07/2023, 12:26 PMimportant-country-59976
02/07/2023, 12:35 PMwitty-magazine-45881
02/07/2023, 4:22 PMfierce-intern-71272
02/07/2023, 8:18 PMcreamy-cricket-77058
02/08/2023, 6:56 AMstraight-pencil-91170
02/08/2023, 8:23 AMagreeable-painting-90494
02/08/2023, 8:32 AMswift-megabyte-13324
02/08/2023, 9:16 AM.as('updatedTotal')
using cy.get('@updatedTotal')
. I'm getting a failure, but the Cypress runner shows some misleading results. The stack trace highlights the .get line, but the error mentions .closest being called.... What could cause this?colossal-oxygen-29599
02/08/2023, 11:49 AMvideo: true
versus video: false
in the cypress config.
Moreover, I'm having a hard time diagnosing/debugging whether the agents are under-resourced, or perhaps the thing slowing down our tests are DNS-resolution/networking errors.
Can anyone advise?
using cypress@12.5.1 with typescript and the following config:
typescript
import registerCypressGrep from '@cypress/grep/src/plugin';
import { defineConfig } from 'cypress';
import dotenvPlugin from 'cypress-dotenv';
// eslint-disable-next-line import/no-default-export
export default defineConfig({
video: false,
trashAssetsBeforeRuns: true,
// numTestsKeptInMemory: 5,
pageLoadTimeout: 60_000,
videoUploadOnPasses: false,
videoCompression: 16,
e2e: {
// eslint-disable-next-line @typescript-eslint/naming-convention
setupNodeEvents(_on, config) {
// implement node event listeners here
config = dotenvPlugin(config, { debug: true }, true);
registerCypressGrep(config);
return config;
},
},
reporter: 'cypress-multi-reporters',
reporterOptions: {
reporterEnabled: 'spec, mocha-junit-reporter',
mochaJunitReporterReporterOptions: {
mochaFile: 'cypress/results/results-[hash].xml',
},
},
});
lively-balloon-98986
02/08/2023, 1:37 PMlimited-baker-83810
02/08/2023, 2:38 PMenough-truck-68085
02/08/2023, 3:47 PMpowerful-gigabyte-69168
02/08/2023, 3:50 PMadventurous-xylophone-14195
02/08/2023, 5:03 PMlet searchproduct = "tv";
describe('NetOnNet Suite', function(){
this.beforeEach(function(){
cy.visit('www.netonnet.se');
});
if('Get Method', function(){
cy.get('#search-form').type(searchproduct)
cy.get('#searchSubmit').click();
});
stale-florist-57929
02/08/2023, 5:47 PMred-stone-72927
02/08/2023, 7:15 PMnarrow-lawyer-36180
02/09/2023, 12:03 PMmelodic-carpenter-21598
02/09/2023, 12:36 PMambitious-monkey-72386
02/09/2023, 1:12 PMcold-nail-59111
02/09/2023, 1:14 PMcreamy-eve-57054
02/09/2023, 1:16 PMjolly-night-56837
02/09/2023, 2:09 PMimport { NdlNotifications } from "../../ndl-notifications";
describe("NdlNotifications", () => {
it("renders", () => {
cy.mount(NdlNotifications);
});
});
The issue is, that the NdlNotifications component is a custom element and has the .ce.vue
file ending.
In the test runner it shows that it tries to mount NdlNotifications.ce
My index file for NdlNotifications looks like this
import { defineCustomElement } from "vue";
import NdlNotifications from "./NdlNotifications.ce.vue";
export { NdlNotifications };
export function register(tagName = "ndl-notifications") {
customElements.define(tagName, defineCustomElement(NdlNotifications));
}
cold-nail-59111
02/09/2023, 2:10 PMmammoth-animal-49690
02/09/2023, 2:57 PMboundless-pager-73753
02/09/2023, 3:05 PMrecurse(
() => cy.get('[title="next page"] > .page-link'),
($next) => $next.is('hidden'),
{
timeout: 15000,
delay: 100,
log: true,
debugLog: true,
post() {
cy.get('[title="next page"] > .page-link').click()
}
}
)
Cypress is not finding it
How to approach that? Thank you
#1064946933187235880little-france-10142
02/09/2023, 3:18 PMrough-businessperson-41883
02/09/2023, 5:18 PMdelightful-guitar-3252
02/09/2023, 9:33 PM